|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.ibm.websphere.objectgrid.ObjectGridException com.ibm.websphere.objectgrid.TransactionException
public class TransactionException
A general transaction exception indicating something went wrong with a transaction.
The isTransactionActive()
and wasTransactionRolledBack()
methods
can be used to determine whether transaction is still active or was rolled back
as a result of this exception occuring.
Field Summary | |
---|---|
protected boolean |
ivTransactionRolledBack
Indicates whether the transaction was rolled back or not. |
Constructor Summary | |
---|---|
TransactionException(String message,
boolean rolledBack)
Constructs a new TransactionException with the specified detail message and a special indication of whether the transaction was rolled back as a result of this exception. |
|
TransactionException(String message,
Throwable cause,
boolean rolledBack)
Constructs a new TransactionException with the specified detail message, cause, and indication of whether the transaction was rolled back as a result of this exception. |
|
TransactionException(String message,
TransactionException cause,
boolean rolledBack)
Constructs a new TransactionException with the specified detail message, cause, and indication of whether the transaction was rolled back as a result of this exception. |
|
TransactionException(Throwable cause,
boolean rolledBack)
Constructs a new TransactionException with a specified cause and a specified indication of whether the transaction was rolled back as a result of this exception. |
|
TransactionException(TransactionException cause,
boolean rolledBack)
Constructs a new TransactionException with a specified cause and a specified indication of whether the transaction was rolled back as a result of this exception. |
Method Summary | |
---|---|
boolean |
isTransactionActive()
Returns true if the transaction is active. |
boolean |
wasTransactionRolledBack()
Returns true if the transaction was rolled back. |
Methods inherited from class com.ibm.websphere.objectgrid.ObjectGridException |
---|
getCause, initCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean ivTransactionRolledBack
Constructor Detail |
---|
public TransactionException(String message, boolean rolledBack)
initCause
method.
message
- the detail message. The detail message is saved for later
retrieval by the getMessage
method.rolledBack
- A value of true
indicates the transaction was rolled back.ObjectGridException.initCause(Throwable)
,
Throwable.getMessage()
,
wasTransactionRolledBack()
public TransactionException(Throwable cause, boolean rolledBack)
(cause==null ? null : cause.toString())
is used (which typically contains the class and detail message of cause
).
This constructor is useful for as a wrapper for other Throwable objects that occur.
cause
- is the exception that caused this exception to be thrown,
which is saved for later retrieval by the getCause()
method.
A null
value is permitted and indicates that the cause
is nonexistent or is unknown.rolledBack
- A value of true
indicates the transaction was rolled back.ObjectGridException.getCause()
,
wasTransactionRolledBack()
public TransactionException(TransactionException cause, boolean rolledBack)
(cause==null ? null : cause.toString())
is used (which typically contains the class and detail message of cause
).
This constructor is useful for as a wrapper for other Throwable objects that occur.
cause
- is the exception that caused this exception to be thrown,
which is saved for later retrieval by the getCause()
method.
A null
value is permitted and indicates that the cause
is nonexistent or is unknown.rolledBack
- A value of true
indicates the transaction was rolled back.ObjectGridException.getCause()
,
wasTransactionRolledBack()
public TransactionException(String message, Throwable cause, boolean rolledBack)
Note that the detail message associated with cause
is
not automatically incorporated in this TransactionException's detail
message.
message
- the detail message (which is saved for later retrieval by the
getMessage
method).cause
- the cause (which is saved for later retrieval by the
getCause
method). (Anull
value is
permitted, and indicates that the cause is nonexistent or
unknown).rolledBack
- A value of true
indicates the transaction was rolled back.ObjectGridException.getCause()
,
Throwable.getMessage()
,
wasTransactionRolledBack()
public TransactionException(String message, TransactionException cause, boolean rolledBack)
Note that the detail message associated with cause
is
not automatically incorporated in this TransactionException's detail
message.
message
- the detail message (which is saved for later retrieval by the
getMessage
method).cause
- the cause (which is saved for later retrieval by the
getCause
method). (Anull
value is
permitted, and indicates that the cause is nonexistent or
unknown).rolledBack
- A value of true
indicates the transaction was rolled back.ObjectGridException.getCause()
,
Throwable.getMessage()
,
wasTransactionRolledBack()
Method Detail |
---|
public boolean isTransactionActive()
true
if the transaction is active. Otherwise, false
is returned to indicate either the transaction never started or was completed.
public boolean wasTransactionRolledBack()
true
if the transaction was rolled back.
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |