Class TransactionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TransactionException
    extends java.lang.Exception
    Exception class for any exceptions or errors during processing within the Transaction framework.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TransactionException​(java.lang.String message)
      A simple constructor to use when you do not have a Throwable to wrap against.
      TransactionException​(java.lang.String errorCode, java.lang.String[] args)
      A constructor that finds a string based on error code.
      TransactionException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new exception with the specified detail message and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getErrorCode()
      Returns the errorCode set for the TransactionException.
      java.lang.String getMessage()  
      • 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

      • TransactionException

        public TransactionException​(java.lang.String errorCode,
                                    java.lang.String[] args)
        A constructor that finds a string based on error code.
        Parameters:
        errorCode - error code of the exception
        args - array containing value of place holders
      • TransactionException

        public TransactionException​(java.lang.String message,
                                    java.lang.Throwable cause)
        Constructs a new exception with the specified detail message and cause.
        Parameters:
        message - message of the exception
        cause - cause of the exception
      • TransactionException

        public TransactionException​(java.lang.String message)
        A simple constructor to use when you do not have a Throwable to wrap against.
        Parameters:
        message - The exception message.
    • Method Detail

      • getErrorCode

        public java.lang.String getErrorCode()
        Returns the errorCode set for the TransactionException. Returns null if it has not been set.
        Returns:
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable