Interface IExceptionHandler<T>
The interface for an exception handler with a generic parameter for the exception type.
public interface IExceptionHandler<T> : IExceptionHandler where T : Exception
Type Parameters
T
The exception type.
- Inherited Members
Methods
HandleException(IExecutionContext, T)
Handles an exception for the given execution context.
bool HandleException(IExecutionContext executionContext, T exception)
Parameters
executionContext
IExecutionContextThe execution context, it contains the request and response context.
exception
TThe exception to handle.
Returns
- bool
Returns a boolean value which indicates if the original exception should be rethrown. This method can also throw a new exception to replace the original exception.