Package cms.util
Class FastException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cms.util.FastException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoMaybeValue
An exception that is fast to throw but doesn't have very good debugging
support unless its withStackTrace() method is used explicitly.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FastException
create()
Create a FastExceptionEffect: Fill in the stack trace like a normal (expensive) exception.There is no meaningful stack trace for this exception because it is supposed to always be handled.Effect: fills in the stack trace of this exception.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FastException
protected FastException()Initialize a FastException
-
-
Method Details
-
create
Create a FastException -
withStackTrace
Effect: fills in the stack trace of this exception. Returns: this -
fillInStackTrace
There is no meaningful stack trace for this exception because it is supposed to always be handled.- Overrides:
fillInStackTrace
in classThrowable
-
customFillInStackTrace
Effect: Fill in the stack trace like a normal (expensive) exception. Returns: a Throwable with a filled-in stack trace.
-