public class GeneralRuntimeException extends RuntimeException
| Constructor and Description |
|---|
GeneralRuntimeException()
Creates new
GeneralException without detail message. |
GeneralRuntimeException(String msg)
Constructs an
GeneralException with the specified detail message. |
GeneralRuntimeException(String msg,
Throwable nested)
Constructs an
GeneralException with the specified detail message and nested Exception. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Returns the detail message, including the message from the nested exception if there is one.
|
Throwable |
getNested()
Returns the nested exception if there is one, or
null if there is not. |
String |
getNonNestedMessage()
Returns the detail message, NOT including the message from the nested exception.
|
void |
printStackTrace()
Prints the composite message to System.err.
|
void |
printStackTrace(PrintStream ps)
Prints the composite message and the embedded stack trace to the specified stream ps.
|
void |
printStackTrace(PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer pw.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toStringpublic GeneralRuntimeException()
GeneralException without detail message.public GeneralRuntimeException(String msg)
GeneralException with the specified detail message.msg - the detail message.public String getMessage()
getMessage in class Throwablepublic String getNonNestedMessage()
public Throwable getNested()
null if there is not.
Note that this behaviour is different from that of GeneralException, which will return
this instead of null when no nested exception has been specified.
public void printStackTrace()
printStackTrace in class Throwablepublic void printStackTrace(PrintStream ps)
printStackTrace in class Throwablepublic void printStackTrace(PrintWriter pw)
printStackTrace in class ThrowableCopyright © 2015 Atlassian. All rights reserved.