Package org.takes
Class HttpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.takes.HttpException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RsForward
public class HttpException extends IOException
HTTP-aware exception.- Since:
- 0.13
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpException(int code)
Ctor.HttpException(int code, String cause)
Ctor.HttpException(int code, String msg, Throwable cause)
Ctor.HttpException(int code, Throwable cause)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
code()
HTTP status code.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HttpException
public HttpException(int code)
Ctor.- Parameters:
code
- HTTP status code
-
HttpException
public HttpException(int code, String cause)
Ctor.- Parameters:
code
- HTTP status codecause
- Cause of the problem
-
HttpException
public HttpException(int code, Throwable cause)
Ctor.- Parameters:
code
- HTTP status codecause
- Cause of the problem
-
-