Class HttpException

All Implemented Interfaces:
Serializable

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: