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.
    • 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)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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
      • mapToMSQAException

        public static MSQAException mapToMSQAException​(java.lang.Exception exception)