Class AuthFailedExceptionHandler
An ExceptionHandler that halts request execution if auth fails
Implements
Namespace: Seltzr.ExceptionHandlers
Assembly: Seltzr.dll
Syntax
C#
public class AuthFailedExceptionHandler : IExceptionHandler
Methods
Handles API exceptions
C#
public virtual Task<bool?> HandleException(Exception exception, HttpContext context, bool hasNext)
Parameters
exceptionException
The exception that was thrown
contextHttpContext
The current request context
hasNextBoolean
true if there is another middleware registered for this route, false otherwise
Returns
true if the request should continue and attempt to use the next middleware registered for this route, false to halt request execution,
C#
null to continue with the next exception handler.