Class ApplicationExceptionHandlingFacade
ExceptionHandling Facade for WPF applications.
Implements
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: Sartorius.SAF.Presentation
Assembly: Sartorius.SAF.Presentation.Application.dll
Syntax
public class ApplicationExceptionHandlingFacade : ExceptionHandlingFacade, IExceptionHandlingFacade
Methods
View SourceLogException(Exception)
Write the exception data according application configuration.
Declaration
public override void LogException(Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex | An exceptions data. |
Overrides
Remarks
Logging exception data does only work when the given exception type is not of type System.ComponentModel.Composition.CompositionException because the service that sends the data resides in the System.ComponentModel.Composition.Hosting.CompositionContainer that was not initialized correctly.
OnUnhandledException(Exception)
Called when the exception is not handled by registered custom exception handlers.
Declaration
protected override void OnUnhandledException(Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex | The ex. |
Overrides
View SourceRegisterUnHandledExceptionEventHandler()
Registers handlers to the DispatcherUnhandledException and UnhandledException events.
Declaration
public override void RegisterUnHandledExceptionEventHandler()
Overrides
View SourceUnRegisterUnhandledExceptionEventHandler()
Unsubscribe handlers from the DispatcherUnhandledException and UnhandledException events.
Declaration
public override void UnRegisterUnhandledExceptionEventHandler()