Package org.apache.ofbiz.base.util
Class GeneralRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.ofbiz.base.util.GeneralRuntimeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UtilCodec.IntrusionException
Base OFBiz Runtime Exception, provides nested exceptions, etc
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates newGeneralException
without detail message.Constructs anGeneralException
with the specified detail message.GeneralRuntimeException
(String msg, Throwable nested) Constructs anGeneralException
with the specified detail message and nested Exception.GeneralRuntimeException
(Throwable nested) Constructs anGeneralException
with a 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, null if there is not.Returns the detail message, NOT including the message from the nested exception.void
Prints the composite message to System.err.void
Prints the composite message and the embedded stack trace to the specified stream ps.void
Prints 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 newGeneralException
without detail message. -
GeneralRuntimeException
Constructs anGeneralException
with the specified detail message.- Parameters:
msg
- the detail message.
-
GeneralRuntimeException
Constructs anGeneralException
with a nested Exception.- Parameters:
nested
- the nested exception.
-
GeneralRuntimeException
Constructs anGeneralException
with 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:
getMessage
in classThrowable
-
getNonNestedMessage
Returns the detail message, NOT including the message from the nested exception. -
getNested
Returns the nested exception if there is one, null if there is not. -
printStackTrace
public void printStackTrace()Prints the composite message to System.err.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Prints the composite message and the embedded stack trace to the specified stream ps.- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
Prints the composite message and the embedded stack trace to the specified print writer pw.- Overrides:
printStackTrace
in classThrowable
-