Package com.mastfrog.acteur.errors
Class ResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mastfrog.acteur.errors.ResponseException
- All Implemented Interfaces:
Serializable
Exception that can be thrown from a Provider and result in a specific HTTP
error response. Please do not use where you can manage this without
exceptions - this is a last resort for when you don't have access to the
Acteur to set its state.
- Author:
- Tim Boudreau
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResponseException(io.netty.handler.codec.http.HttpResponseStatus status, String msg) -
Method Summary
Modifier and TypeMethodDescriptionheaders()io.netty.handler.codec.http.HttpResponseStatusstatus()withHeader(CharSequence name, CharSequence value) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseException
-
-
Method Details
-
status
public io.netty.handler.codec.http.HttpResponseStatus status() -
withHeader
-
headers
-