Show / Hide Table of Contents

Class AuthFailedException

Exception thrown when an authentication provider fails to authenticate a request

Inheritance
Object
Exception
ApiException
AuthFailedException
Implements
ISerializable
Namespace: Seltzr.Exceptions
Assembly: Seltzr.dll
Syntax
C#
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

| Improve this Doc View Source

AuthFailedException()

Initializes a new instance of the AuthFailedException class

C#
public AuthFailedException()
| Improve this Doc View Source

AuthFailedException(String)

Initializes a new instance of the AuthFailedException class

C#
public AuthFailedException(string message)
Parameters
messageString

A message explaining the exception

| Improve this Doc View Source

AuthFailedException(String, Exception)

Initializes a new instance of the AuthFailedException class

C#
public AuthFailedException(string message, Exception inner)
Parameters
messageString

A message explaining the exception

innerException

The inner exception that caused this one

| Improve this Doc View Source

AuthFailedException(String, Exception, Int32)

Initializes a new instance of the AuthFailedException class

C#
public AuthFailedException(string message, Exception inner, int errorCode)
Parameters
messageString

A message explaining the exception

innerException

The inner exception that caused this one

errorCodeInt32

A unique error code for the error that occurred

| Improve this Doc View Source

AuthFailedException(String, Int32)

Initializes a new instance of the AuthFailedException class

C#
public AuthFailedException(string message, int errorCode)
Parameters
messageString

A message explaining the exception

errorCodeInt32

A unique error code for the error that occurred

Implements

System.Runtime.Serialization.ISerializable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX