Class HTTPException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.rdf4j.http.server.HTTPException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientHTTPException, ServerHTTPException

public class HTTPException extends Exception
HTTP-related exception that includes the relevant HTTP status code.
Author:
Arjohn Kampman
See Also:
  • Constructor Details

    • HTTPException

      public HTTPException(int statusCode)
    • HTTPException

      public HTTPException(int statusCode, String message)
    • HTTPException

      public HTTPException(int statusCode, String message, Throwable t)
    • HTTPException

      public HTTPException(int statusCode, Throwable t)
  • Method Details

    • getStatusCode

      public final int getStatusCode()
    • setStatusCode

      protected void setStatusCode(int statusCode)