org.jboss.mq
Class SpyXAException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.transaction.xa.XAException
              extended by org.jboss.mq.SpyXAException
All Implemented Interfaces:
Serializable, org.jboss.util.NestedThrowable

public class SpyXAException
extends XAException
implements org.jboss.util.NestedThrowable

An XAException with a nested throwable

Version:
$Revision: 1.3.6.1 $
Author:
Adrian Brock
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.util.NestedThrowable
org.jboss.util.NestedThrowable.Util
 
Field Summary
protected  Throwable nested
          The nested throwable
 
Fields inherited from class javax.transaction.xa.XAException
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
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, Throwable t)
          Construct a SpyXAException with the specified detail message and error code.
SpyXAException(String msg)
          Construct a SpyXAException with the specified detail message.
SpyXAException(String msg, Throwable t)
          Construct a SpyXAException with the specified detail message.
SpyXAException(Throwable t)
          Construct a SpyXAException
 
Method Summary
 Throwable getCause()
           
 Exception getLinkedException()
           
 String getMessage()
           
 Throwable getNested()
           
 void printStackTrace()
           
 void printStackTrace(PrintStream stream)
           
 void printStackTrace(PrintWriter writer)
           
 void setLinkedException(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 Throwable nested
The nested throwable

Constructor Detail

SpyXAException

public SpyXAException()
Construct a SpyXAException


SpyXAException

public SpyXAException(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(Throwable t)
Construct a SpyXAException

Parameters:
throwable - the nested throwable.

SpyXAException

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

Parameters:
msg - Detail message.
throwable - the nested throwable.

SpyXAException

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

Parameters:
code - Error code.
throwable - the nested throwable.
Method Detail

getNested

public Throwable getNested()
Specified by:
getNested in interface org.jboss.util.NestedThrowable

getCause

public Throwable getCause()
Specified by:
getCause in interface org.jboss.util.NestedThrowable
Overrides:
getCause in class Throwable

setLinkedException

public void setLinkedException(Exception e)

getLinkedException

public Exception getLinkedException()

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

printStackTrace

public void printStackTrace(PrintStream stream)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter writer)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.