|
|||||||||||
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.jms.JMSException
org.jboss.mq.SpyJMSException
A common superclass for JMSException classes that can contain a nested Throwable detail object.
Nested Class Summary |
Nested classes inherited from class org.jboss.util.NestedThrowable |
org.jboss.util.NestedThrowable.Util |
Field Summary | |
protected Throwable |
nested
The nested throwable |
Fields inherited from interface org.jboss.util.NestedThrowable |
DETECT_DUPLICATE_NESTING, NESTED_TRACE_ENABLED, PARENT_TRACE_ENABLED |
Constructor Summary | |
SpyJMSException(String msg)
Construct a SpyJMSException with the specified detail message. |
|
SpyJMSException(String msg,
String code)
Construct a SpyJMSException with the specified detail message and error code. |
|
SpyJMSException(String msg,
Throwable nested)
Construct a SpyJMSException with the specified detail message and nested Throwable. |
|
SpyJMSException(Throwable nested)
Construct a SpyJMSException with the specified nested Throwable. |
Method Summary | |
static javax.jms.JMSException |
getAsJMSException(String message,
Throwable t)
Converts a throwable to a JMSException if it is not already |
Throwable |
getCause()
|
Exception |
getLinkedException()
|
String |
getMessage()
|
Throwable |
getNested()
|
void |
printStackTrace()
|
void |
printStackTrace(PrintStream stream)
|
void |
printStackTrace(PrintWriter writer)
|
static void |
rethrowAsJMSException(String message,
Throwable t)
Converts a throwable to a JMSException if it is not already |
void |
setLinkedException(Exception e)
|
Methods inherited from class javax.jms.JMSException |
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 |
protected Throwable nested
Constructor Detail |
public SpyJMSException(String msg)
msg
- Detail message.public SpyJMSException(String msg, String code)
msg
- Detail message.code
- Error code.public SpyJMSException(String msg, Throwable nested)
msg
- Detail message.nested
- Nested Throwable.public SpyJMSException(Throwable nested)
nested
- Nested Throwable.Method Detail |
public static void rethrowAsJMSException(String message, Throwable t) throws javax.jms.JMSException
message
- any message to add to a constructed JMSExceptiont
- the throwable
javax.jms.JMSException
- alwayspublic static javax.jms.JMSException getAsJMSException(String message, Throwable t)
message
- any message to add to a constructed JMSExceptiont
- the throwable
public void setLinkedException(Exception e)
public Exception getLinkedException()
public Throwable getNested()
getNested
in interface org.jboss.util.NestedThrowable
public Throwable getCause()
getCause
in interface org.jboss.util.NestedThrowable
public String getMessage()
public void printStackTrace(PrintStream stream)
public void printStackTrace(PrintWriter writer)
public void printStackTrace()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |