org.jboss.mq
Class SpyXAException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.transaction.xa.XAException (src) 
              extended byorg.jboss.mq.SpyXAException
All Implemented Interfaces:
NestedThrowable (src) , java.io.Serializable

public class SpyXAException
extends XAException (src)
implements NestedThrowable (src)

An XAException with a nested throwable

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 class javax.transaction.xa.XAException (src)
errorCode, XA_HEURCOM, XA_HEURHAZ, XA_HEURMIX, XA_HEURRB, XA_NOMIGRATE, XA_RBBASE, XA_RBCOMMFAIL, XA_RBDEADLOCK, XA_RBEND, XA_RBINTEGRITY, XA_RBOTHER, XA_RBPROTO, XA_RBROLLBACK, XA_RBTIMEOUT, XA_RBTRANSIENT, XA_RDONLY, XA_RETRY, XAER_ASYNC, XAER_DUPID, XAER_INVAL, XAER_NOTA, XAER_OUTSIDE, XAER_PROTO, XAER_RMERR, XAER_RMFAIL
 
Fields inherited from interface org.jboss.util.NestedThrowable (src)
DETECT_DUPLICATE_NESTING, NESTED_TRACE_ENABLED, PARENT_TRACE_ENABLED
 
Constructor Summary
SpyXAException()
          Construct a SpyXAException
SpyXAException(int code)
          Construct a SpyXAException with the specified detail message and error code.
SpyXAException(int code, java.lang.Throwable t)
          Construct a SpyXAException with the specified detail message and error code.
SpyXAException(java.lang.String msg)
          Construct a SpyXAException with the specified detail message.
SpyXAException(java.lang.String msg, java.lang.Throwable t)
          Construct a SpyXAException with the specified detail message.
SpyXAException(java.lang.Throwable t)
          Construct a SpyXAException
 
Method Summary
 java.lang.Throwable getCause()
          Return the nested Throwable.
 java.lang.Exception getLinkedException()
           
 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)
           
 
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

SpyXAException

public SpyXAException()
Construct a SpyXAException


SpyXAException

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

Parameters:
msg - Detail message.

SpyXAException

public SpyXAException(int code)
Construct a SpyXAException with the specified detail message and error code.

Parameters:
code - Error code.

SpyXAException

public SpyXAException(java.lang.Throwable t)
Construct a SpyXAException


SpyXAException

public SpyXAException(java.lang.String msg,
                      java.lang.Throwable t)
Construct a SpyXAException with the specified detail message.

Parameters:
msg - Detail message.

SpyXAException

public SpyXAException(int code,
                      java.lang.Throwable t)
Construct a SpyXAException with the specified detail message and error code.

Parameters:
code - Error code.
Method Detail

getNested

public java.lang.Throwable getNested()
Description copied from interface: NestedThrowable (src)
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)

getLinkedException

public java.lang.Exception getLinkedException()

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()