Interface HttpException

All Superinterfaces:
QuietException
All Known Implementing Classes:
BadMessageException, HttpException.IllegalArgumentException, HttpException.RuntimeException

public interface HttpException extends QuietException

A tagging interface for Exceptions that carry a HTTP response code and reason.

Exception sub-classes that implement this interface will be caught by the container and the getCode() used to send a response.

  • Method Details

    • getCode

      int getCode()
    • getReason

      String getReason()
    • throwAsUnchecked

      static void throwAsUnchecked(HttpException httpException)