Class HttpErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
net.thauvin.erik.frankfurter.exceptions.HttpErrorException
All Implemented Interfaces:
Serializable

public class HttpErrorException extends IOException
Exception representing HTTP errors with status codes.
See Also:
  • Constructor Details

    • HttpErrorException

      public HttpErrorException(int statusCode, String message, URI uri, Throwable cause)
      Creates an HttpErrorException with status code, message, and cause.
      Parameters:
      statusCode - the HTTP status code
      message - the error message
      cause - the underlying cause of the exception
    • HttpErrorException

      public HttpErrorException(int statusCode, String message, URI uri)
      Creates an HttpErrorException with status code and message.
      Parameters:
      statusCode - the HTTP status code
      message - the error message
      uri - the URI
  • Method Details

    • getStatusCode

      public int getStatusCode()
      Gets the HTTP status code.
      Returns:
      the status code
    • getUri

      public URI getUri()
      Gets the URI.
      Returns:
      the URI