Class TransactionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adobe.aem.transaction.core.exception.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 theerrorCode
set for theTransactionException
.java.lang.String
getMessage()
-
-
-
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 exceptionargs
- 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 exceptioncause
- 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.
-
-