Class DefaultExceptionHandler
Provides a default handler for ThreadExceptions.
Inheritance
System.Object
DefaultExceptionHandler
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class DefaultExceptionHandler
Remarks
A thread exception is generated when unhandled exceptions occur on a thread. This is a last resort exception handler that allows your application to gracefully deal with unhandled exceptions.
Constructors
DefaultExceptionHandler()
Declaration
public DefaultExceptionHandler()
Fields
Singleton
Singleton instance of the DefaultExceptionHandler.
Declaration
public static DefaultExceptionHandler Singleton
Field Value
| Type |
|---|
| DefaultExceptionHandler |
Methods
OnThreadException(Object, ThreadExceptionEventArgs)
Called when a thread exception occurs.
Declaration
public void OnThreadException(object sender, ThreadExceptionEventArgs evtArgs)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | Object sending the event. |
| System.Threading.ThreadExceptionEventArgs | evtArgs | Event arguments. |
ShowApplicationErrorDialog(Exception)
Shows the application error dialog.
Declaration
public bool ShowApplicationErrorDialog(Exception ex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | ex | The System.Exception. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true, if show application error dialog. |
ShowUserErrorDialog(Exception)
Shows a model dialog that displays a user error message.
Declaration
public void ShowUserErrorDialog(Exception ex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Exception | ex | Exception thrown by the error. |