MsalException Constructors

Definition

Overloads

MsalException()

Initializes a new instance of the exception class.

MsalException(String)

Initializes a new instance of the exception class with a specified error code.

MsalException(String, String)

Initializes a new instance of the exception class with a specified error code and error message.

MsalException(String, String, Exception)

Initializes a new instance of the exception class with a specified error code and a reference to the inner exception that is the cause of this exception.

MsalException()

Initializes a new instance of the exception class.

public MsalException ();
Public Sub New ()

Applies to

MsalException(String)

Initializes a new instance of the exception class with a specified error code.

public MsalException (string errorCode);
new Microsoft.Identity.Client.MsalException : string -> Microsoft.Identity.Client.MsalException
Public Sub New (errorCode As String)

Parameters

errorCode
String

The error code returned by the service or generated by the client. This is the code you can rely on for exception handling.

Applies to

MsalException(String, String)

Initializes a new instance of the exception class with a specified error code and error message.

public MsalException (string errorCode, string errorMessage);
new Microsoft.Identity.Client.MsalException : string * string -> Microsoft.Identity.Client.MsalException
Public Sub New (errorCode As String, errorMessage As String)

Parameters

errorCode
String

The error code returned by the service or generated by the client. This is the code you can rely on for exception handling.

errorMessage
String

The error message that explains the reason for the exception.

Applies to

MsalException(String, String, Exception)

Initializes a new instance of the exception class with a specified error code and a reference to the inner exception that is the cause of this exception.

public MsalException (string errorCode, string errorMessage, Exception innerException);
new Microsoft.Identity.Client.MsalException : string * string * Exception -> Microsoft.Identity.Client.MsalException
Public Sub New (errorCode As String, errorMessage As String, innerException As Exception)

Parameters

errorCode
String

The error code returned by the service or generated by the client. This is the code you can rely on for exception handling.

errorMessage
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Applies to