Class JaloBusinessException

    • Constructor Summary

      Constructors 
      Constructor Description
      JaloBusinessException​(java.lang.String message)
      Creates a new business exception.
      JaloBusinessException​(java.lang.String message, int errorCode)
      Creates a new business exception.
      JaloBusinessException​(java.lang.Throwable nested)
      Creates a new business exception.
      JaloBusinessException​(java.lang.Throwable nested, int errorCode)
      Creates a new business exception with a nested exception.
      JaloBusinessException​(java.lang.Throwable nested, java.lang.String message, int errorCode)
      Creates a new business exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int getErrorCode()
      Gets the error code of this exception.
      java.lang.Throwable getThrowable()
      Deprecated.
      since ages - useThrowable.getCause() instead
      java.lang.String toString()
      Adds the error code of this exception to the output string.
      • Methods inherited from class java.lang.Throwable

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JaloBusinessException

        public JaloBusinessException​(java.lang.Throwable nested,
                                     java.lang.String message,
                                     int errorCode)
        Creates a new business exception.
        Parameters:
        nested - cause exception
        message - error message
        errorCode - related error code
      • JaloBusinessException

        public JaloBusinessException​(java.lang.String message,
                                     int errorCode)
        Creates a new business exception.
        Parameters:
        message - error message
        errorCode - related error code
      • JaloBusinessException

        public JaloBusinessException​(java.lang.Throwable nested,
                                     int errorCode)
        Creates a new business exception with a nested exception. The new exception's message will be the same as that of the nested exception.
        Parameters:
        nested - the exception that caused this exception
        errorCode - a unique exception code
      • JaloBusinessException

        public JaloBusinessException​(java.lang.Throwable nested)
        Creates a new business exception.
        Parameters:
        nested - the exception that caused this exception
      • JaloBusinessException

        public JaloBusinessException​(java.lang.String message)
        Creates a new business exception.
        Parameters:
        message - error message
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Gets the error code of this exception.
        Returns:
        related error code
      • getThrowable

        @Deprecated
        public java.lang.Throwable getThrowable()
        Deprecated.
        since ages - useThrowable.getCause() instead
      • toString

        public java.lang.String toString()
        Adds the error code of this exception to the output string.
        Overrides:
        toString in class java.lang.Throwable