Top Description Constructors Methods
org.eclipse.jetty.util

public Class ConstantThrowable

extends Throwable
Class Inheritance

A Throwable that may be used in static contexts. It uses Java 7 constructor that prevents setting stackTrace inside exception object.

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Throwable.toString.

Returns a short description of this throwable.

Inherited from java.lang.Throwable:
addSuppressedfillInStackTracegetCausegetLocalizedMessagegetMessagegetStackTracegetSuppressedinitCauseprintStackTraceprintStackTraceprintStackTracesetStackTrace

Constructor Detail

ConstantThrowableback to summary
public ConstantThrowable()
ConstantThrowableback to summary
public ConstantThrowable(String name)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Throwable.toString.

Doc from java.lang.Throwable.toString.

Returns a short description of this throwable. The result is the concatenation of:

  • the name of the class of this object
  • ": " (a colon and a space)
  • the result of invoking this object's getLocalizedMessage method
If getLocalizedMessage returns null, then just the class name is returned.
Returns:String

a string representation of this throwable.

Annotations
@Override