public class ImATeapotException extends JWIGException
Any attempt to brew coffee with a teapot should result in the error code "418 I'm a teapot". The resulting entity body MAY be short and stout.
| Constructor and Description |
|---|
ImATeapotException()
Constructs a new exception.
|
ImATeapotException(String message)
Constructs a new exception with the given message.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode() |
getLogInfo, getMessagePage, getXml, setErrorPage, setHeadersaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ImATeapotException()
public ImATeapotException(String message)
public int getErrorCode()
getErrorCode in class JWIGExceptionCopyright © 2008-2012 Anders Møller & Mathias Schwarz.