C# Class Microsoft.Identity.Client.MsalServiceException

The exception type thrown when user returned by service does not match user in the request.
Inheritance: MsalException
Show file Open project: AzureAD/microsoft-authentication-library-for-dotnet Class Usage Examples

Public Methods

Method Description
MsalServiceException ( string errorCode, string message ) : System

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

ToString ( ) : string

Creates and returns a string representation of the current exception.

Private Methods

Method Description
MsalServiceException ( string errorCode, Exception innerException ) : System

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.

MsalServiceException ( string errorCode, string message, string serviceErrorCodes, Exception innerException ) : System

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.

Method Details

MsalServiceException() public method

Initializes a new instance of the exception class with a specified error code and error message.
public MsalServiceException ( string errorCode, string message ) : System
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.
message string The error message that explains the reason for the exception.
return System

ToString() public method

Creates and returns a string representation of the current exception.
public ToString ( ) : string
return string