Class AuthFailedException
Exception thrown when an authentication provider fails to authenticate a request
Implements
Namespace: Seltzr.Exceptions
Assembly: Seltzr.dll
Syntax
public class AuthFailedException : ApiException, ISerializable
Remarks
If thrown from an auth provider, this exception indicates that the chosen auth provider was not able to authenticate for the given request, but that request execution should continue with the next available provider. If thrown from middleware, this exception indicates that all auth providers failed and request execution should halt.
Constructors
Initializes a new instance of the AuthFailedException class
public AuthFailedException()
Initializes a new instance of the AuthFailedException class
public AuthFailedException(string message)
Parameters
message
String
A message explaining the exception
Initializes a new instance of the AuthFailedException class
public AuthFailedException(string message, Exception inner)
Parameters
message
String
A message explaining the exception
inner
Exception
The inner exception that caused this one
Initializes a new instance of the AuthFailedException class
public AuthFailedException(string message, Exception inner, int errorCode)
Parameters
message
String
A message explaining the exception
inner
Exception
The inner exception that caused this one
errorCode
Int32
A unique error code for the error that occurred
Initializes a new instance of the AuthFailedException class
public AuthFailedException(string message, int errorCode)
Parameters
message
String
A message explaining the exception
errorCode
Int32
A unique error code for the error that occurred