AdalException AdalException AdalException Class

Definition

The exception type thrown when an error occurs during token acquisition.

public class AdalException : Exception
type AdalException = class
    inherit Exception
Public Class AdalException
Inherits Exception
Inheritance
AdalExceptionAdalExceptionAdalException
Derived

Constructors

AdalException() AdalException() AdalException()

Initializes a new instance of the exception class.

AdalException(String) AdalException(String) AdalException(String)

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

AdalException(String, Exception) AdalException(String, Exception) AdalException(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.

AdalException(String, String) AdalException(String, String) AdalException(String, String)

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

AdalException(String, String, Exception) AdalException(String, String, Exception) AdalException(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.

Properties

ErrorCode ErrorCode ErrorCode

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

Methods

FromJsonString(String) FromJsonString(String) FromJsonString(String)

Allows re-hydration of the AdalException (or one of its derived types) from JSON generated by ToJsonString().

ToJsonString() ToJsonString() ToJsonString()

Allows serialization of most values of the exception into JSON.

ToString() ToString() ToString()

Creates and returns a string representation of the current exception.

Applies to