org.apache.openejb.core.transaction
Class TransactionRolledbackException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by javax.transaction.TransactionRolledbackException
                      extended by org.apache.openejb.core.transaction.TransactionRolledbackException
All Implemented Interfaces:
java.io.Serializable

public class TransactionRolledbackException
extends javax.transaction.TransactionRolledbackException

Subclass of javax.transaction.TransactionRolledbackException which adds init cause to the exception.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
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)
           
 
Method Summary
 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.
 
Methods inherited from class java.rmi.RemoteException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionRolledbackException

public TransactionRolledbackException()

TransactionRolledbackException

public TransactionRolledbackException(java.lang.String detailMessage)

TransactionRolledbackException

public TransactionRolledbackException(java.lang.String detailMessage,
                                      java.lang.Throwable throwable)
Constructs a new instance of this class with its walkback, message and cause filled in.

Parameters:
detailMessage - String The detail message for the exception.
throwable - The cause of this Throwable

TransactionRolledbackException

public TransactionRolledbackException(java.lang.Throwable throwable)
Method Detail

getLocalizedMessage

public java.lang.String getLocalizedMessage()
Answers the extra information message which was provided when the throwable was created. If no message was provided at creation time, then answer null. Subclasses may override this method to answer localized text for the message.

Overrides:
getLocalizedMessage in class java.lang.Throwable
Returns:
String The receiver's message.

printStackTrace

public void printStackTrace()
Outputs a printable representation of the receiver's walkback on the System.err stream.

Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream err)
Outputs a printable representation of the receiver's walkback on the stream specified by the argument.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
err - PrintStream The stream to write the walkback on.

printStackTrace

public void printStackTrace(java.io.PrintWriter err)
Outputs a printable representation of the receiver's walkback on the writer specified by the argument.

Overrides:
printStackTrace in class java.lang.Throwable
Parameters:
err - PrintWriter The writer to write the walkback on.

toString

public java.lang.String toString()
Answers a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class java.lang.Throwable
Returns:
String a printable representation for the receiver.

initCause

public TransactionRolledbackException initCause(java.lang.Throwable throwable)
Initialize the cause of the receiver. The cause cannot be reassigned.

Overrides:
initCause in class java.lang.Throwable
Parameters:
throwable - The cause of this Throwable
Returns:
the receiver.
Throws:
java.lang.IllegalArgumentException - when the cause is the receiver
java.lang.IllegalStateException - when the cause has already been initialized

getCause

public java.lang.Throwable getCause()
Answers the cause of this Throwable, or null if there is no cause.

Overrides:
getCause in class java.rmi.RemoteException
Returns:
Throwable The receiver's cause.


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.