AdalServiceException AdalServiceException AdalServiceException Class


The exception type thrown when the server returns an error. It's required to look at the internal details of the exception for a more information.

public class AdalServiceException : Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException
type AdalServiceException = class
    inherit AdalException
Public Class AdalServiceException
Inherits AdalException


AdalServiceException(String, String) AdalServiceException(String, String) AdalServiceException(String, String)

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


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.

(Inherited from AdalException)
Headers Headers Headers

Contains headers from the response that indicated an error

ServiceErrorCodes ServiceErrorCodes ServiceErrorCodes

Gets the specific error codes that may be returned by the service.

StatusCode StatusCode StatusCode

Gets the status code returned from http layer. This status code is either the HttpStatusCode in the inner HttpRequestException response or NavigateError Event Status Code in browser based flow (See You can use this code for purposes such as implementing retry logic or error investigation.


ToJsonString() ToJsonString() ToJsonString()

Allows serialization of most values of the exception into JSON.

(Inherited from AdalException)
ToString() ToString() ToString()

Creates and returns a string representation of the current exception.

Applies to