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
-
AdalException
- Derived
Constructors
AdalException() |
Initializes a new instance of the exception class. |
AdalException(String) |
Initializes a new instance of the exception class with a specified error code. |
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) |
Initializes a new instance of the exception class with a specified error code and error message. |
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 |
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) |
Allows re-hydration of the AdalException (or one of its derived types) from JSON generated by ToJsonString(). |
ToJsonString() |
Allows serialization of most values of the exception into JSON. |
ToString() |
Creates and returns a string representation of the current exception. |