MsalException Class

  • java.lang.Object
    • BaseException
      • com.microsoft.identity.client.exception.MsalException

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