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,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 theMSQAExceptionwith error code and error message.MSQAException(java.lang.String errorCode, java.lang.String errorMessage, java.lang.Throwable throwable)Initiates theMSQAExceptionwith error code, error message and throwable.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MSQAExceptioncreate(java.lang.Exception exception)static MSQAExceptioncreateNoAccountException()java.lang.StringgetErrorCode()java.lang.StringgetMessage()Return the detailed description explaining why the exception is returned back.java.lang.ExceptiongetSuppressedException()voidsetSuppressedException(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 theMSQAExceptionwith 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 theMSQAExceptionwith error code, error message and throwable.- Parameters:
errorCode- The error code contained in the exception.errorMessage- The error message contained in the exception.throwable- TheThrowablecontains 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.
MSQAExceptionis 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:
getMessagein classjava.lang.Throwable
-
create
public static MSQAException create(java.lang.Exception exception)
-
createNoAccountException
public static MSQAException createNoAccountException()
-
-