public class MsalServiceException extends MsalException
| Constructor and Description |
|---|
MsalServiceException(com.microsoft.aad.msal4j.AadInstanceDiscoveryResponse discoveryResponse)
Initializes a new instance of the exception class
|
MsalServiceException(com.microsoft.aad.msal4j.ErrorResponse errorResponse,
Map<String,List<String>> httpHeaders)
Initializes a new instance of the exception class
|
MsalServiceException(String message,
String error)
Initializes a new instance of the exception class with a specified error message
|
| Modifier and Type | Method and Description |
|---|---|
String |
claims()
Claims included in the claims challenge
|
String |
correlationId()
An ID that can be used to piece up a single authentication flow.
|
Map<String,List<String>> |
headers()
Contains the http headers from the server response that indicated an error.
|
Integer |
statusCode()
Status code returned from http layer
|
String |
statusMessage()
Status message returned from the http layer
|
errorCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MsalServiceException(String message, String error)
message - the error message that explains the reason for the exceptionpublic MsalServiceException(com.microsoft.aad.msal4j.ErrorResponse errorResponse,
Map<String,List<String>> httpHeaders)
errorResponse - response object contain information about error returned by serverhttpHeaders - http headers from the server responsepublic MsalServiceException(com.microsoft.aad.msal4j.AadInstanceDiscoveryResponse discoveryResponse)
discoveryResponse - response object from instance discovery network callpublic Integer statusCode()
public String statusMessage()
public String correlationId()
public String claims()
Copyright © 2013–2024. All rights reserved.