AdalServiceException Constructor (String, String, String[], WebException)


Applies to: Version: 2.19.208020213, Platform: .NET Desktop.

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.

Namespace:   Microsoft.IdentityModel.Clients.ActiveDirectory
Assembly:  Microsoft.IdentityModel.Clients.ActiveDirectory (in Microsoft.IdentityModel.Clients.ActiveDirectory.dll)

public AdalServiceException(
	string errorCode,
	string message,
	string[] serviceErrorCodes,
	WebException innerException


Type: System.String

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

Type: System.String

The error message that explains the reason for the exception.

Type: System.String[]

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

Type: System.Net.WebException

The exception that is the cause of the current exception, or a null reference if no inner exception is specified. It may especially contain the actual error message returned by the service.

Return to top