Top Description Constructors
org.eclipse.jetty.util

public Class StaticException

extends Exception
Class Inheritance

This exception can safely be stored in a static variable as suppressed exceptions are disabled, meaning calling addSuppressed(Throwable) has no effect. This prevents potential memory leaks where a statically-stored exception would accumulate suppressed exceptions added to them.

Constructor Summary

AccessConstructor and Description
public
StaticException(String
– the detail message
message
)

Create an instance with writable stack trace and suppression disabled.

public
StaticException(String
– the detail message
message
,
boolean
whether or not the stack trace should be writable
writableStackTrace
)

Create an instance with suppression disabled.

Constructor Detail

StaticExceptionback to summary
public StaticException(String message)

Create an instance with writable stack trace and suppression disabled.

Parameters
message:String

– the detail message

See Also
Throwable#Throwable(String, Throwable, boolean, boolean)
StaticExceptionback to summary
public StaticException(String message, boolean writableStackTrace)

Create an instance with suppression disabled.

Parameters
message:String

– the detail message

writableStackTrace:boolean

whether or not the stack trace should be writable

See Also
Throwable#Throwable(String, Throwable, boolean, boolean)