Share via


AuthenticationFailureException Constructors

Definition

Overloads

AuthenticationFailureException(String)

Creates a new instance of AuthenticationFailureException with the specified exception message.

AuthenticationFailureException(String, Exception)

Creates a new instance of AuthenticationFailureException with the specified exception message and a reference to the inner exception that is the cause of this exception.

AuthenticationFailureException(String)

Source:
AuthenticationFailureException.cs

Creates a new instance of AuthenticationFailureException with the specified exception message.

public AuthenticationFailureException (string? message);
new Microsoft.AspNetCore.Authentication.AuthenticationFailureException : string -> Microsoft.AspNetCore.Authentication.AuthenticationFailureException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

AuthenticationFailureException(String, Exception)

Source:
AuthenticationFailureException.cs

Creates a new instance of AuthenticationFailureException with the specified exception message and a reference to the inner exception that is the cause of this exception.

public AuthenticationFailureException (string? message, Exception? innerException);
new Microsoft.AspNetCore.Authentication.AuthenticationFailureException : string * Exception -> Microsoft.AspNetCore.Authentication.AuthenticationFailureException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception, or null.

Applies to