MsalClientException Class

Definition

This exception class represents errors that are local to the library or the device. Contrary to MsalServiceException which represent errors happening from the Azure AD service or the network. For more details, see https://aka.ms/msal-net-exceptions

public class MsalClientException : Microsoft.Identity.Client.MsalException
type MsalClientException = class
    inherit MsalException
Public Class MsalClientException
Inherits MsalException
Inheritance
MsalClientException

Constructors

MsalClientException(String)

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

MsalClientException(String, String)

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

MsalClientException(String, String, Exception)

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

Properties

ErrorCode

Gets the protocol error code returned by the service or generated by the client. This is the code you can rely on for exception handling. Values for this code are typically provided in constant strings in the derived exceptions types with explanations of mitigation.

(Inherited from MsalException)
IsRetryable

Indicates if the previous operation that resulted in this exception should be retried.

(Inherited from MsalException)

Methods

ToJsonString()

Allows serialization of most values of the exception into JSON.

(Inherited from MsalException)
ToString()

Creates and returns a string representation of the current exception.

(Inherited from MsalException)

Applies to