MsalException Class
- java.
lang. Object - BaseException
- com.
microsoft. identity. client. exception. MsalException
- com.
public class MsalException
MsalException thrown or sent back via callback, representing the detailed exception thrown by the sdk. It will contain the error code, error description (could be null) or throwable (could be null).
Method Summary
Modifier and Type | Method and Description |
---|---|
String | getErrorCode() |
String |
getMessage()
Return the detailed description explaining why the exception is returned back. |
Method Details
getErrorCode
public String getErrorCode()
Returns:
The error code for the exception, could be null. MsalException is the top level base exception, for the constants value of all the error code.
getMessage
public String getMessage()
Return the detailed description explaining why the exception is returned back.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java