Class MSQAException

    • 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 the MSQAException with error code and error message.
      MSQAException​(java.lang.String errorCode, java.lang.String errorMessage, java.lang.Throwable throwable)
      Initiates the MSQAException with error code, error message and throwable.
    • 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 the MSQAException 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 the MSQAException 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 - The Throwable 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 class java.lang.Throwable
      • create

        public static MSQAException create​(java.lang.Exception exception)
      • createNoAccountException

        public static MSQAException createNoAccountException()