public class AbortTransactionException extends ADEPT2ServiceException
AbortTransactionException indicates that a transaction in a
service cannot be completed and therefore has to be aborted. This differs
from an InvalidServiceStateException which indicates that the
complete service cannot handle any requests while a request replied to with
an AbortTransactionException can be retried. Runtime)Exceptions will lead more or
less to an abort of the current transaction, a receiver of this exception
usually can check the inner exception of an
AbortTransactionException.| Modifier and Type | Field and Description |
|---|---|
protected SessionToken |
session
The session token that initiated the transaction that is to be aborted.
|
| Constructor and Description |
|---|
AbortTransactionException(SessionToken session,
java.lang.String message)
Create a new exception to abort the transaction for the designated session
token having the designated description.
|
AbortTransactionException(SessionToken session,
java.lang.String message,
java.lang.Throwable cause)
Create a new exception to abort the transaction for the designated session
token having the designated description and cause.
|
AbortTransactionException(SessionToken session,
java.lang.Throwable cause)
Create a new exception to abort the transaction for the designated session
token having the designated cause.
|
protected final SessionToken session
public AbortTransactionException(SessionToken session, java.lang.String message)
session - The session that initiated the transaction to be aborted.message - A textual description for the cause of the abortion.public AbortTransactionException(SessionToken session, java.lang.Throwable cause)
session - The session that initiated the transaction to be aborted.cause - The cause for the abortion of the transaction.public AbortTransactionException(SessionToken session, java.lang.String message, java.lang.Throwable cause)
session - The session that initiated the transaction to be aborted.message - A textual description for the cause of the abortion.cause - The cause for the abortion of the transaction.