Class LightweightIllegalStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalStateException
gov.llnl.gnem.apps.coda.common.model.util.LightweightIllegalStateException
- All Implemented Interfaces:
Serializable
Runtime exception extension of IllegalStateException
without the
stack trace building. Generally expected to be used in control flow when we
want to return a human readable error message or warning when we may also
need to return or throw other exceptions where we want to spend the cycles to
build a full stack trace.
Note that throwing one of these will still rewind the stack, so you should still expect some performance overhead on these
- See Also:
-
Constructor Summary
ConstructorDescriptionLightweightIllegalStateException
(String message) LightweightIllegalStateException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionNo-op that simply return the instance instead of calling the native fillInStackTrace method.Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LightweightIllegalStateException
-
LightweightIllegalStateException
public LightweightIllegalStateException() -
LightweightIllegalStateException
-
LightweightIllegalStateException
-
-
Method Details
-
fillInStackTrace
No-op that simply return the instance instead of calling the native fillInStackTrace method.- Overrides:
fillInStackTrace
in classThrowable
-