- All Superinterfaces:
org.eclipse.jetty.io.QuietException
- All Known Implementing Classes:
BadMessageException,HttpException.IllegalArgumentException,HttpException.RuntimeException
public interface HttpException
extends org.eclipse.jetty.io.QuietException
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 Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classException thrown to indicate a Bad HTTP Message has either been received or attempted to be generated.static classException thrown to indicate a Bad HTTP Message has either been received or attempted to be generated.Nested classes/interfaces inherited from interface org.eclipse.jetty.io.QuietException
org.eclipse.jetty.io.QuietException.Exception -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()static voidthrowAsUnchecked(HttpException httpException)
-
Method Details
-
getCode
int getCode() -
getReason
String getReason() -
throwAsUnchecked
-