Package ratpack.core.http
Class ClientErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ratpack.core.http.ClientErrorException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RequestBodyTooLargeException
public abstract class ClientErrorException extends RuntimeException
Indicates that this exception represents a client error. If thrown within a handler, will result inContext.clientError(int)
being called, instead of the exception propagating.- Since:
- 1.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClientErrorException(String message)
ClientErrorException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract int
getClientErrorCode()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-