Interface HttpException

All Superinterfaces:
org.eclipse.jetty.io.QuietException
All Known Implementing Classes:
BadMessageException, HttpException.IllegalArgumentException, HttpException.RuntimeException

public interface HttpException extends org.eclipse.jetty.io.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.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated.
    static class 
    Exception thrown to indicate a Bad HTTP Message has either been received or attempted to be generated.

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.QuietException

    org.eclipse.jetty.io.QuietException.Exception
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
     
    static void
     
  • Method Details

    • getCode

      int getCode()
    • getReason

      String getReason()
    • throwAsUnchecked

      static void throwAsUnchecked(HttpException httpException)