MsalException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
microsoft. aad. msal4j. MsalException
- com.
- java.
- java.
- java.
public class MsalException
extends java.lang.RuntimeException
Base exception type thrown when an error occurs during token acquisition.
Constructor Summary
| Constructor | Description |
|---|---|
| MsalException(String message, String errorCode) |
Initializes a new instance of the exception class |
| MsalException(Throwable throwable) |
Initializes a new instance of the exception class |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
errorCode()
Authentication error code |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
MsalException
public MsalException(String message, String errorCode)
Initializes a new instance of the exception class
Parameters:
MsalException
public MsalException(Throwable throwable)
Initializes a new instance of the exception class
Parameters:
Method Details
errorCode
public String errorCode()
Authentication error code