Class MSQAException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.microsoft.quickauth.signin.error.MSQAException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MSQACancelException
,MSQANoAccountException
,MSQANoScopeException
,MSQAUiRequiredException
public class MSQAException extends java.lang.Exception
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MSQAException()
MSQAException(java.lang.String errorCode)
Initiates the detailed error code.MSQAException(java.lang.String errorCode, java.lang.String errorMessage)
Initiates theMSQAException
with error code and error message.MSQAException(java.lang.String errorCode, java.lang.String errorMessage, java.lang.Throwable throwable)
Initiates theMSQAException
with error code, error message and throwable.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getErrorCode()
java.lang.String
getMessage()
Return the detailed description explaining why the exception is returned back.java.lang.Exception
getSuppressedException()
static MSQAException
mapToMSQAException(java.lang.Exception exception)
void
setSuppressedException(java.lang.Exception e)
-
-
-
Constructor Detail
-
MSQAException
public MSQAException()
-
MSQAException
public MSQAException(java.lang.String errorCode)
Initiates the detailed error code.- Parameters:
errorCode
- The error code contained in the exception.
-
MSQAException
public MSQAException(java.lang.String errorCode, java.lang.String errorMessage)
Initiates theMSQAException
with error code and error message.- Parameters:
errorCode
- The error code contained in the exception.errorMessage
- The error message contained in the exception.
-
MSQAException
public MSQAException(java.lang.String errorCode, java.lang.String errorMessage, java.lang.Throwable throwable)
Initiates theMSQAException
with error code, error message and throwable.- Parameters:
errorCode
- The error code contained in the exception.errorMessage
- The error message contained in the exception.throwable
- TheThrowable
contains the cause for the exception.
-
-
Method Detail
-
setSuppressedException
public void setSuppressedException(java.lang.Exception e)
-
getSuppressedException
public java.lang.Exception getSuppressedException()
-
getErrorCode
public java.lang.String getErrorCode()
- Returns:
- The error code for the exception, could be null.
MSQAException
is the top level base exception, for the constants value of all the error code.
-
getMessage
public java.lang.String getMessage()
Return the detailed description explaining why the exception is returned back.- Overrides:
getMessage
in classjava.lang.Throwable
-
mapToMSQAException
public static MSQAException mapToMSQAException(java.lang.Exception exception)
-
-