|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ofbiz.base.util.GeneralRuntimeException
public class GeneralRuntimeException
Base OFBiz Runtime Exception, provides nested exceptions, etc
Constructor Summary | |
---|---|
GeneralRuntimeException()
Creates new GeneralException without detail message. |
|
GeneralRuntimeException(java.lang.String msg)
Constructs an GeneralException with the specified detail message. |
|
GeneralRuntimeException(java.lang.String msg,
java.lang.Throwable nested)
Constructs an GeneralException with the specified detail message and nested Exception. |
|
GeneralRuntimeException(java.lang.Throwable nested)
Constructs an GeneralException with a nested Exception. |
Method Summary | |
---|---|
java.lang.String |
getMessage()
Returns the detail message, including the message from the nested exception if there is one. |
java.lang.Throwable |
getNested()
Returns the nested exception if there is one, null if there is not. |
java.lang.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(java.io.PrintStream ps)
Prints the composite message and the embedded stack trace to the specified stream ps. |
void |
printStackTrace(java.io.PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer pw. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GeneralRuntimeException()
GeneralException
without detail message.
public GeneralRuntimeException(java.lang.String msg)
GeneralException
with the specified detail message.
msg
- the detail message.public GeneralRuntimeException(java.lang.Throwable nested)
GeneralException
with a nested Exception.
nested
- the nested exception.public GeneralRuntimeException(java.lang.String msg, java.lang.Throwable nested)
GeneralException
with the specified detail message and nested Exception.
msg
- the detail message.Method Detail |
---|
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getNonNestedMessage()
public java.lang.Throwable getNested()
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |