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