Class ConstantThrowable

java.lang.Object
java.lang.Throwable
org.eclipse.jetty.util.ConstantThrowable
All Implemented Interfaces:
Serializable

public class ConstantThrowable extends Throwable

A Throwable that may be used in static contexts, for example when stored as a static field.

Suppressed exceptions are disabled; adding a suppressed exception has no effect, so that instances of this class stored as static fields do not accumulate suppressed exceptions.

The stack trace is also disabled, since it would only be captured at the time this exception is created, not when the failure actually occurs.

See Also:
  • Constructor Details

    • ConstantThrowable

      public ConstantThrowable()
    • ConstantThrowable

      public ConstantThrowable(String name)
  • Method Details