MsalServiceException Constructors

Definition

Overloads

MsalServiceException(String, String)

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

MsalServiceException(String, String, Exception)

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

MsalServiceException(String, String, Int32)

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

MsalServiceException(String, String, Int32, Exception)

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

MsalServiceException(String, String, Int32, String, Exception)

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

MsalServiceException(String, String)

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

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

Parameters

errorCode
String

The protocol error code returned by the service or generated by 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

MsalServiceException(String, String, Exception)

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

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

Parameters

errorCode
String

The protocol 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

MsalServiceException(String, String, Int32)

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

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

Parameters

errorCode
String

The protocol 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.

statusCode
Int32

Status code of the response received from the service.

Applies to

MsalServiceException(String, String, Int32, Exception)

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

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

Parameters

errorCode
String

The protocol 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.

statusCode
Int32

HTTP status code of the response received from the service.

innerException
Exception

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

Applies to

MsalServiceException(String, String, Int32, String, Exception)

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

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

Parameters

errorCode
String

The protocol 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.

statusCode
Int32

The status code of the request.

claims
String

The claims challenge returned back from the service.

innerException
Exception

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

Applies to