org.jboss.mq
Class SpyTransactionRolledBackException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.jms.JMSException (src) 
              extended byjavax.jms.TransactionRolledBackException (src) 
                  extended byorg.jboss.mq.SpyTransactionRolledBackException
All Implemented Interfaces:
NestedThrowable (src) , java.io.Serializable

public class SpyTransactionRolledBackException
extends TransactionRolledBackException (src)
implements NestedThrowable (src)

A TransactionRolledBackException with a nested Throwable detail object.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jboss.util.NestedThrowable (src)
NestedThrowable.Util (src)
 
Field Summary
protected  java.lang.Throwable nested
          The nested throwable
 
Fields inherited from interface org.jboss.util.NestedThrowable (src)
DETECT_DUPLICATE_NESTING, NESTED_TRACE_ENABLED, PARENT_TRACE_ENABLED
 
Constructor Summary
SpyTransactionRolledBackException(java.lang.String msg)
          Construct a SpyTransactionRolledBackException with the specified detail message.
SpyTransactionRolledBackException(java.lang.String msg, java.lang.Throwable nested)
          Construct a SpyTransactionRolledBackException with the specified detail message and nested Throwable.
SpyTransactionRolledBackException(java.lang.Throwable nested)
          Construct a SpyTransactionRolledBackException with the specified nested Throwable.
 
Method Summary
 java.lang.Throwable getCause()
          Return the nested Throwable.
 java.lang.Exception getLinkedException()
          Gets the exception linked to this one.
 java.lang.String getMessage()
           
 java.lang.Throwable getNested()
          Return the nested Throwable.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream stream)
           
 void printStackTrace(java.io.PrintWriter writer)
           
 void setLinkedException(java.lang.Exception e)
          Adds a linked Exception.
 
Methods inherited from class javax.jms.JMSException (src)
getErrorCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nested

protected java.lang.Throwable nested
The nested throwable

Constructor Detail

SpyTransactionRolledBackException

public SpyTransactionRolledBackException(java.lang.String msg)
Construct a SpyTransactionRolledBackException with the specified detail message.

Parameters:
msg - Detail message.

SpyTransactionRolledBackException

public SpyTransactionRolledBackException(java.lang.String msg,
                                         java.lang.Throwable nested)
Construct a SpyTransactionRolledBackException with the specified detail message and nested Throwable.

Parameters:
msg - Detail message.
nested - Nested Throwable.

SpyTransactionRolledBackException

public SpyTransactionRolledBackException(java.lang.Throwable nested)
Construct a SpyTransactionRolledBackException with the specified nested Throwable.

Parameters:
nested - Nested Throwable.
Method Detail

getNested

public java.lang.Throwable getNested()
Return the nested Throwable.

Specified by:
getNested in interface NestedThrowable (src)
Returns:
Nested Throwable.

getCause

public java.lang.Throwable getCause()
Description copied from interface: NestedThrowable (src)
Return the nested Throwable.

For JDK 1.4 compatibility.

Specified by:
getCause in interface NestedThrowable (src)

setLinkedException

public void setLinkedException(java.lang.Exception e)
Description copied from class: JMSException (src)
Adds a linked Exception.

Overrides:
setLinkedException in class JMSException (src)
Parameters:
e - the linked Exception

getLinkedException

public java.lang.Exception getLinkedException()
Description copied from class: JMSException (src)
Gets the exception linked to this one.

Overrides:
getLinkedException in class JMSException (src)
Returns:
the linked Exception, null if none

getMessage

public java.lang.String getMessage()

printStackTrace

public void printStackTrace(java.io.PrintStream stream)

printStackTrace

public void printStackTrace(java.io.PrintWriter writer)

printStackTrace

public void printStackTrace()