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
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Methods inherited from java.lang.Throwable
java.lang.Throwable.addSuppressed
java.lang.Throwable.fillInStackTrace
java.lang.Throwable.getCause
java.lang.Throwable.getLocalizedMessage
java.lang.Throwable.getMessage
java.lang.Throwable.getStackTrace
java.lang.Throwable.getSuppressed
java.lang.Throwable.initCause
java.lang.Throwable.printStackTrace
java.lang.Throwable.printStackTrace
java.lang.Throwable.printStackTrace
java.lang.Throwable.setStackTrace
java.lang.Throwable.toString
Constructor Details
MsalException
public MsalException(String message, String errorCode)
Initializes a new instance of the exception class
Parameters:
message
- the error message that explains the reason for the exception
errorCode
MsalException
public MsalException(Throwable throwable)
Initializes a new instance of the exception class
Parameters:
throwable
- the inner exception that is the cause of the current exception
Method Details
errorCode
public String errorCode()
Authentication error code