Package cms.util

Class FastException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NoMaybeValue

public abstract class FastException extends Exception
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 Details

    • FastException

      protected FastException()
      Initialize a FastException
  • Method Details

    • create

      protected abstract FastException create()
      Create a FastException
    • withStackTrace

      public FastException withStackTrace()
      Effect: fills in the stack trace of this exception. Returns: this
    • fillInStackTrace

      public Throwable fillInStackTrace()
      There is no meaningful stack trace for this exception because it is supposed to always be handled.
      Overrides:
      fillInStackTrace in class Throwable
    • customFillInStackTrace

      public Throwable customFillInStackTrace()
      Effect: Fill in the stack trace like a normal (expensive) exception. Returns: a Throwable with a filled-in stack trace.