Package org.eclipse.jetty.http
Class HttpException.RuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.eclipse.jetty.http.HttpException.RuntimeException
- All Implemented Interfaces:
Serializable
,HttpException
,QuietException
- Direct Known Subclasses:
BadMessageException
- Enclosing interface:
- HttpException
public static class HttpException.RuntimeException
extends RuntimeException
implements HttpException
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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpException
HttpException.IllegalArgumentException, HttpException.RuntimeException
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.QuietException
QuietException.Exception
-
Constructor Summary
ConstructorDescriptionRuntimeException
(int code) RuntimeException
(int code, String reason) RuntimeException
(int code, String reason, Throwable cause) RuntimeException
(int code, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RuntimeException
public RuntimeException(int code) -
RuntimeException
-
RuntimeException
-
RuntimeException
-
-
Method Details
-
getCode
public int getCode()- Specified by:
getCode
in interfaceHttpException
-
getReason
- Specified by:
getReason
in interfaceHttpException
-