public class TransactionRolledbackException
extends jakarta.transaction.TransactionRolledbackException
Constructor and Description |
---|
TransactionRolledbackException() |
TransactionRolledbackException(java.lang.String detailMessage) |
TransactionRolledbackException(java.lang.String detailMessage,
java.lang.Throwable throwable)
Constructs a new instance of this class with its walkback, message and
cause filled in.
|
TransactionRolledbackException(java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getCause()
Answers the cause of this Throwable, or null if there is no cause.
|
java.lang.String |
getLocalizedMessage()
Answers the extra information message which was provided when the
throwable was created.
|
TransactionRolledbackException |
initCause(java.lang.Throwable throwable)
Initialize the cause of the receiver.
|
void |
printStackTrace()
Outputs a printable representation of the receiver's walkback on the
System.err stream.
|
void |
printStackTrace(java.io.PrintStream err)
Outputs a printable representation of the receiver's walkback on the
stream specified by the argument.
|
void |
printStackTrace(java.io.PrintWriter err)
Outputs a printable representation of the receiver's walkback on the
writer specified by the argument.
|
java.lang.String |
toString()
Answers a string containing a concise, human-readable description of the
receiver.
|
protected java.lang.Object |
writeReplace() |
public TransactionRolledbackException()
public TransactionRolledbackException(java.lang.String detailMessage)
public TransactionRolledbackException(java.lang.String detailMessage, java.lang.Throwable throwable)
detailMessage
- String The detail message for the exception.throwable
- The cause of this Throwablepublic TransactionRolledbackException(java.lang.Throwable throwable)
public java.lang.String getLocalizedMessage()
public void printStackTrace()
public void printStackTrace(java.io.PrintStream err)
err
- PrintStream The stream to write the walkback on.public void printStackTrace(java.io.PrintWriter err)
err
- PrintWriter The writer to write the walkback on.public java.lang.String toString()
public TransactionRolledbackException initCause(java.lang.Throwable throwable)
throwable
- The cause of this Throwablejava.lang.IllegalArgumentException
- when the cause is the receiverjava.lang.IllegalStateException
- when the cause has already been initializedpublic java.lang.Throwable getCause()
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException