Package rife.tools.exceptions
Class LightweightError
java.lang.Object
java.lang.Throwable
java.lang.Error
rife.tools.exceptions.LightweightError
- All Implemented Interfaces:
Serializable
An error that is intended to be as lightweight as possible.
Typically, this is used for ControlFlowRuntimeException
exceptions so
that as little overhead as possible is imposed when these exceptions are
thrown. This is achieved by enforcing the stack traces to be empty, causing
them to not be captured.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionLightweightError
(String message) LightweightError
(String message, Throwable cause) LightweightError
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LightweightError
public LightweightError() -
LightweightError
-
LightweightError
-
LightweightError
-
-
Method Details
-
fillInStackTrace
- Overrides:
fillInStackTrace
in classThrowable
-
getStackTrace
- Overrides:
getStackTrace
in classThrowable
-