Package org.ofbiz.core.util
Class GeneralRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.ofbiz.core.util.GeneralRuntimeException
- All Implemented Interfaces:
Serializable
Base OFBiz Runtime Exception, provides nested exceptions, etc
Created July 12, 2002
- Version:
- 1.0
- Author:
- David E. Jones
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates newGeneralExceptionwithout detail message.Constructs anGeneralExceptionwith the specified detail message.GeneralRuntimeException(String msg, Throwable nested) Constructs anGeneralExceptionwith the specified detail message and nested Exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns the detail message, including the message from the nested exception if there is one.Returns the nested exception if there is one, ornullif there is not.Returns the detail message, NOT including the message from the nested exception.voidPrints the composite message to System.err.voidPrints the composite message and the embedded stack trace to the specified stream ps.voidPrints the composite message and the embedded stack trace to the specified print writer pw.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace, toString
-
Constructor Details
-
GeneralRuntimeException
public GeneralRuntimeException()Creates newGeneralExceptionwithout detail message. -
GeneralRuntimeException
Constructs anGeneralExceptionwith the specified detail message.- Parameters:
msg- the detail message.
-
GeneralRuntimeException
Constructs anGeneralExceptionwith the specified detail message and nested Exception.- Parameters:
msg- the detail message.
-
-
Method Details
-
getMessage
Returns the detail message, including the message from the nested exception if there is one.- Overrides:
getMessagein classThrowable
-
getNonNestedMessage
Returns the detail message, NOT including the message from the nested exception. -
getNested
Returns the nested exception if there is one, ornullif there is not.Note that this behaviour is different from that of
GeneralException, which will returnthisinstead ofnullwhen no nested exception has been specified. -
printStackTrace
public void printStackTrace()Prints the composite message to System.err.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints the composite message and the embedded stack trace to the specified stream ps.- Overrides:
printStackTracein classThrowable
-
printStackTrace
Prints the composite message and the embedded stack trace to the specified print writer pw.- Overrides:
printStackTracein classThrowable
-