public abstract class NestedRuntimeException extends RuntimeException
Constructor and Description |
---|
NestedRuntimeException(String msg)
Construct a
NestedRuntimeException with the specified detail message. |
NestedRuntimeException(String msg,
Throwable t)
Construct a
NestedRuntimeException with the specified
detail message and nested exception. |
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Return the detail message, including the message from the nested
exception if there is one.
|
Throwable |
getUnderlyingException()
Gets the original triggering exception
|
void |
printStackTrace(PrintStream ps)
Print the composite message and the embedded stack trace to the specified stream.
|
void |
printStackTrace(PrintWriter pw)
Print the composite message and the embedded stack trace to the specified writer.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
public NestedRuntimeException(String msg)
NestedRuntimeException
with the specified detail message.msg
- The detail message.public Throwable getUnderlyingException()
public String getMessage()
getMessage
in class Throwable
public void printStackTrace(PrintStream ps)
printStackTrace
in class Throwable
ps
- the print streampublic void printStackTrace(PrintWriter pw)
printStackTrace
in class Throwable
pw
- the print writerCopyright © 2025 Apache Software Foundation. All rights reserved.