Class ExceptionHandler<T>
The abstract base class for exception handlers.
public abstract class ExceptionHandler<T> : IExceptionHandler<T>, IExceptionHandler where T : Exception
Type Parameters
T
The exception type.
- Inheritance
-
ExceptionHandler<T>
- Implements
- Derived
- Inherited Members
Constructors
ExceptionHandler(ILogger)
protected ExceptionHandler(ILogger logger)
Parameters
logger
ILogger
Properties
Logger
protected ILogger Logger { get; }
Property Value
Methods
Handle(IExecutionContext, Exception)
public bool Handle(IExecutionContext executionContext, Exception exception)
Parameters
executionContext
IExecutionContextexception
Exception
Returns
HandleAsync(IExecutionContext, Exception)
public Task<bool> HandleAsync(IExecutionContext executionContext, Exception exception)
Parameters
executionContext
IExecutionContextexception
Exception
Returns
HandleException(IExecutionContext, T)
public abstract bool HandleException(IExecutionContext executionContext, T exception)
Parameters
executionContext
IExecutionContextexception
T
Returns
HandleExceptionAsync(IExecutionContext, T)
public abstract Task<bool> HandleExceptionAsync(IExecutionContext executionContext, T exception)
Parameters
executionContext
IExecutionContextexception
T