| Method from org.jboss.mq.SpyJMSException Detail: |
public static JMSException getAsJMSException(String message,
Throwable t) {
if (t instanceof JMSException)
return (JMSException) t;
else
return new SpyJMSException(message, t);
}
Converts a throwable to a JMSException if it is not already |
public Throwable getCause() {
return nested;
}
|
public Exception getLinkedException() {
// jason: this is bad, but whatever... the jms folks should have had more
// insight
if (nested == null)
return this;
if (nested instanceof Exception)
return (Exception) nested;
return new NestedException(nested);
}
|
public String getMessage() {
return NestedThrowable.Util.getMessage(super.getMessage(), nested);
}
|
public Throwable getNested() {
return nested;
}
|
public void printStackTrace() {
printStackTrace(System.err);
}
|
public void printStackTrace(PrintStream stream) {
if (nested == null || NestedThrowable.PARENT_TRACE_ENABLED)
super.printStackTrace(stream);
NestedThrowable.Util.print(nested, stream);
}
|
public void printStackTrace(PrintWriter writer) {
if (nested == null || NestedThrowable.PARENT_TRACE_ENABLED)
super.printStackTrace(writer);
NestedThrowable.Util.print(nested, writer);
}
|
public static void rethrowAsJMSException(String message,
Throwable t) throws JMSException {
throw getAsJMSException(message, t);
}
Converts a throwable to a JMSException if it is not already |
public void setLinkedException(Exception e) {
this.nested = e;
}
|