Package org.eclipse.jetty.http
Interface HttpException
- All Superinterfaces:
QuietException
- All Known Implementing Classes:
BadMessageException
,HttpException.IllegalArgumentException
,HttpException.RuntimeException
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
Modifier and TypeInterfaceDescriptionstatic class
Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated.static class
Exception 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
QuietException.Exception
-
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
static void
throwAsUnchecked
(HttpException httpException)
-
Method Details
-
getCode
int getCode() -
getReason
String getReason() -
throwAsUnchecked
-