Top Description Inners Methods
org.eclipse.jetty.http

public Interface HttpException

extends QuietException
Known Direct Implementers
org.eclipse.jetty.http.HttpException.RuntimeException, org.eclipse.jetty.http.HttpException.IllegalArgumentException
Imports
org.eclipse.jetty.io.QuietException, org.eclipse.jetty.util.ExceptionUtil

A tagging interface for Exceptions that carry a HTTP response code and reason.

Exception sub-classes that implement this interface will be caught by the container and the getCode() used to send a response.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
HttpException.IllegalArgumentException

Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated.

public static class
HttpException.RuntimeException

Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated.

Method Summary

Modifier and TypeMethod and Description
public int
public String
public static void
Inherited from org.eclipse.jetty.io.QuietException:
isQuiet

Method Detail

getCodeback to summary
public int getCode()
getReasonback to summary
public String getReason()
throwAsUncheckedback to summary
public static void throwAsUnchecked(HttpException httpException)
org.eclipse.jetty.http back to summary

public Class HttpException.IllegalArgumentException

extends IllegalArgumentException
implements HttpException
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.http.HttpException, org.eclipse.jetty.io.QuietException

Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated. Typically these are handled with either 400 or 500 responses.

Field Summary

Modifier and TypeField and Description
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
public
IllegalArgumentException(int code, String reason)

public
IllegalArgumentException(int code, String reason, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public int
public String

Field Detail

_codeback to summary
private final int _code
_reasonback to summary
private final String _reason

Constructor Detail

IllegalArgumentExceptionback to summary
public IllegalArgumentException(int code)
IllegalArgumentExceptionback to summary
public IllegalArgumentException(int code, String reason)
IllegalArgumentExceptionback to summary
public IllegalArgumentException(int code, String reason, Throwable cause)

Method Detail

getCodeback to summary
public int getCode()

Implements org.eclipse.jetty.http.HttpException.getCode.

Annotations
@Override
getReasonback to summary
public String getReason()

Implements org.eclipse.jetty.http.HttpException.getReason.

Annotations
@Override
org.eclipse.jetty.http back to summary

public Class HttpException.RuntimeException

extends RuntimeException
implements HttpException
Class Inheritance
All Implemented Interfaces
org.eclipse.jetty.http.HttpException, org.eclipse.jetty.io.QuietException
Known Direct Subclasses
org.eclipse.jetty.http.BadMessageException

Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated. Typically these are handled with either 400 or 500 responses.

Field Summary

Modifier and TypeField and Description
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
RuntimeException(int code)

public
RuntimeException(int code, String reason)

public
RuntimeException(int code, Throwable cause)

public
RuntimeException(int code, String reason, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public int
public String

Field Detail

_codeback to summary
private final int _code
_reasonback to summary
private final String _reason

Constructor Detail

RuntimeExceptionback to summary
public RuntimeException(int code)
RuntimeExceptionback to summary
public RuntimeException(int code, String reason)
RuntimeExceptionback to summary
public RuntimeException(int code, Throwable cause)
RuntimeExceptionback to summary
public RuntimeException(int code, String reason, Throwable cause)

Method Detail

getCodeback to summary
public int getCode()

Implements org.eclipse.jetty.http.HttpException.getCode.

Annotations
@Override
getReasonback to summary
public String getReason()

Implements org.eclipse.jetty.http.HttpException.getReason.

Annotations
@Override