Module io.avaje.jex

Class HttpResponseException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequestException, InternalServerErrorException, NotFoundException, RedirectException

public class HttpResponseException extends RuntimeException
Throwing an uncaught HttpResponseException will interrupt http processing and set the status code and response body with the given message
See Also:
  • Constructor Details

    • HttpResponseException

      public HttpResponseException(int status, String message, Map<String,String> details)
    • HttpResponseException

      public HttpResponseException(int status, String message)
  • Method Details

    • getStatus

      public int getStatus()
    • getDetails

      public Map<String,String> getDetails()