|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.transaction.xa.XAException
org.jboss.mq.SpyXAException
public class SpyXAException
An XAException with a nested throwable
| 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 | |
|---|---|
static XAException |
getAsXAException(String message,
Throwable t)
Converts a throwable to an XAException if it is not already |
Throwable |
getCause()
|
Exception |
getLinkedException()
|
String |
getMessage()
|
Throwable |
getNested()
|
void |
printStackTrace()
|
void |
printStackTrace(PrintStream stream)
|
void |
printStackTrace(PrintWriter writer)
|
static XAException |
rethrowAsXAException(String message,
Throwable t)
Converts a throwable to an XAException if it is not already |
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 |
|---|
protected Throwable nested
| Constructor Detail |
|---|
public SpyXAException()
public SpyXAException(String msg)
msg - Detail message.public SpyXAException(int code)
code - Error code.public SpyXAException(Throwable t)
throwable - the nested throwable.
public SpyXAException(String msg,
Throwable t)
msg - Detail message.throwable - the nested throwable.
public SpyXAException(int code,
Throwable t)
code - Error code.throwable - the nested throwable.| Method Detail |
|---|
public static XAException rethrowAsXAException(String message,
Throwable t)
throws XAException
message - any message to add to a constructed XAExceptiont - the throwable
XAException - always
public static XAException getAsXAException(String message,
Throwable t)
message - any message to add to a constructed XAExceptiont - the throwable
public Throwable getNested()
getNested in interface org.jboss.util.NestedThrowablepublic Throwable getCause()
getCause in interface org.jboss.util.NestedThrowablegetCause in class Throwablepublic void setLinkedException(Exception e)
public Exception getLinkedException()
public String getMessage()
getMessage in class Throwablepublic void printStackTrace(PrintStream stream)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter writer)
printStackTrace in class Throwablepublic void printStackTrace()
printStackTrace in class Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||