java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.avaje.jex.http.HttpResponseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestException,InternalServerErrorException,NotFoundException,RedirectException
Throwing an uncaught
HttpResponseException will interrupt http processing and set the
status code and response body with the given message- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpResponseException(int status, String message) HttpResponseException(int status, String message, Map<String, String> details) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpResponseException
-
HttpResponseException
-
-
Method Details
-
getStatus
public int getStatus() -
getDetails
-