Constructors Summary |
---|
public JBossResourceException(String msg)Construct a JBossResourceException with the specified detail
message.
super(msg);
|
public JBossResourceException(String msg, String code)Construct a JBossResourceException with the specified detail
message and error code.
super(msg, code);
|
public JBossResourceException(String msg, String code, Throwable linked)Construct a JBossResourceException with the specified detail
message, error code and linked Exception.
super(msg, code);
setLinkedException(process(linked));
|
public JBossResourceException(String msg, Throwable linked)Construct a JBossResourceException with the specified detail
message and linked Exception.
super(msg);
setLinkedException(process(linked));
|
public JBossResourceException(Throwable linked)Construct a JBossResourceException with the specified
linked Exception.
this(linked.getMessage(), linked);
|
Methods Summary |
---|
public java.lang.Throwable | getCause()Return the nested Throwable.
For JDK 1.4 compatibility.
return getLinkedException();
|
public java.lang.String | getMessage()Returns the composite throwable message.
return NestedThrowable.Util.getMessage(super.getMessage(), getLinkedException());
|
public java.lang.Throwable | getNested()Return the nested Throwable.
return getLinkedException();
|
public void | printStackTrace(java.io.PrintStream stream)Prints the composite message and the embedded stack trace to the
specified print stream.
Exception linked = getLinkedException();
if (linked == null || NestedThrowable.PARENT_TRACE_ENABLED)
{
super.printStackTrace(stream);
}
NestedThrowable.Util.print(linked, stream);
|
public void | printStackTrace(java.io.PrintWriter writer)Prints the composite message and the embedded stack trace to the
specified print writer.
Exception linked = getLinkedException();
if (linked == null || NestedThrowable.PARENT_TRACE_ENABLED)
{
super.printStackTrace(writer);
}
NestedThrowable.Util.print(linked, writer);
|
public void | printStackTrace()Prints the composite message and the embedded stack trace to
System.err.
printStackTrace(System.err);
|
private java.lang.Exception | process(java.lang.Throwable t)
if (t instanceof Exception)
{
return (Exception)t;
} // end of if ()
return new UndeclaredThrowableException(t);
|
public static void | rethrowAsResourceException(java.lang.String message, java.lang.Throwable t)Rethrow as a resource exception if it is not already
if (t instanceof ResourceException)
throw (ResourceException) t;
else
throw new JBossResourceException(message, t);
|