Class HttpException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MalformedRequestException

public class HttpException extends RuntimeException
Runtime exception carrying an HTTP status code. Extensions map this to a structured JSON error response via the global exception handler installed by flash-ext-jackson.

 throw HttpException.notFound("Blog");
 throw new HttpException(422, "Validation failed: title is required");
 
See Also:
  • Constructor Details

    • HttpException

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