| org.jboss.resource.JBossResourceException
JBossResourceException | public class JBossResourceException extends ResourceException implements NestedThrowable(Code) | | Thrown to indicate a problem with a resource related operation.
Properly displays linked exception (ie. nested exception)
when printing the stack trace.
version: $Revision: 57189 $ author: Jason Dillon |
JBossResourceException | public JBossResourceException(String msg)(Code) | | Construct a JBossResourceException with the specified detail
message.
Parameters: msg - Detail message. |
JBossResourceException | public JBossResourceException(String msg, String code)(Code) | | Construct a JBossResourceException with the specified detail
message and error code.
Parameters: msg - Detail message. Parameters: code - Error code. |
JBossResourceException | public JBossResourceException(String msg, String code, Throwable linked)(Code) | | Construct a JBossResourceException with the specified detail
message, error code and linked Exception.
Parameters: msg - Detail message. Parameters: code - Error code. Parameters: linked - Linked Exception. |
JBossResourceException | public JBossResourceException(String msg, Throwable linked)(Code) | | Construct a JBossResourceException with the specified detail
message and linked Exception.
Parameters: msg - Detail message. Parameters: linked - Linked Exception. |
JBossResourceException | public JBossResourceException(Throwable linked)(Code) | | Construct a JBossResourceException with the specified
linked Exception.
Parameters: linked - Linked Exception. |
getCause | public Throwable getCause()(Code) | | Return the nested Throwable.
For JDK 1.4 compatibility.
Nested Throwable. |
getMessage | public String getMessage()(Code) | | Returns the composite throwable message.
The composite throwable message. |
getNested | public Throwable getNested()(Code) | | Return the nested Throwable.
Nested Throwable. |
printStackTrace | public void printStackTrace(PrintStream stream)(Code) | | Prints the composite message and the embedded stack trace to the
specified print stream.
Parameters: stream - Stream to print to. |
printStackTrace | public void printStackTrace(PrintWriter writer)(Code) | | Prints the composite message and the embedded stack trace to the
specified print writer.
Parameters: writer - Writer to print to. |
printStackTrace | public void printStackTrace()(Code) | | Prints the composite message and the embedded stack trace to
System.err.
|
rethrowAsResourceException | public static void rethrowAsResourceException(String message, Throwable t) throws ResourceException(Code) | | Rethrow as a resource exception if it is not already
Parameters: message - the message Parameters: t - the original exception throws: ResourceException - the resource exception |
|
|