Class ErrorHandler
Error handling service.
Implements
Inherited Members
Namespace: Evergine.Framework.Services
Assembly: Evergine.Framework.dll
Syntax
public class ErrorHandler : Service, IDependencyObject
Constructors
ErrorHandler()
Initializes a new instance of the ErrorHandler class.
Declaration
public ErrorHandler()
Properties
PropagateEvergineExceptions
Gets or sets a value indicating whether the application will propagate captured exceptions.
Declaration
public bool PropagateEvergineExceptions { get; set; }
Property Value
Type | Description |
---|---|
bool |
ThrowBindingExceptions
Gets or sets a value indicating whether the application throws an exception when binding errors appear.
Declaration
public bool ThrowBindingExceptions { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
CaptureException(Exception)
Registers an exception.
Declaration
public virtual bool CaptureException(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
Exception | exception | The exception. |
Returns
Type | Description |
---|---|
bool | True if we want to rethrow the exception. |
Events
OnExceptionThrown
Event that is fired when an exception occurs. This event is always fired, even if PropagateEvergineExceptions is true.
Declaration
public event EventHandler<Exception> OnExceptionThrown
Event Type
Type | Description |
---|---|
EventHandler<Exception> |