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

public class LightweightIllegalStateException extends IllegalStateException

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 Details

    • LightweightIllegalStateException

      public LightweightIllegalStateException(String message)
    • LightweightIllegalStateException

      public LightweightIllegalStateException()
    • LightweightIllegalStateException

      public LightweightIllegalStateException(String message, Throwable cause)
    • LightweightIllegalStateException

      public LightweightIllegalStateException(Throwable cause)
  • Method Details

    • fillInStackTrace

      public Throwable fillInStackTrace()
      No-op that simply return the instance instead of calling the native fillInStackTrace method.
      Overrides:
      fillInStackTrace in class Throwable