public abstract class NestedRuntimeException
extends java.lang.RuntimeException
Constructor and Description |
---|
NestedRuntimeException(java.lang.String msg)
Construct a
NestedRuntimeException with the specified detail message. |
NestedRuntimeException(java.lang.String msg,
java.lang.Throwable t)
Construct a
NestedRuntimeException with the specified
detail message and nested exception. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage()
Return the detail message, including the message from the nested
exception if there is one.
|
java.lang.Throwable |
getUnderlyingException()
Gets the original triggering exception
|
void |
printStackTrace(java.io.PrintStream ps)
Print the composite message and the embedded stack trace to the specified stream.
|
void |
printStackTrace(java.io.PrintWriter pw)
Print the composite message and the embedded stack trace to the specified writer.
|
public NestedRuntimeException(java.lang.String msg)
NestedRuntimeException
with the specified detail message.msg
- The detail message.public NestedRuntimeException(java.lang.String msg, java.lang.Throwable t)
NestedRuntimeException
with the specified
detail message and nested exception.msg
- The detail message.t
- The nested exception.public java.lang.Throwable getUnderlyingException()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
ps
- the print streampublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
pw
- the print writerCopyright 1999-2012 The Apache Software Foundation. All Rights Reserved.