Class HttpRangeNotSatisfiableException

All Implemented Interfaces:
Serializable

public final class HttpRangeNotSatisfiableException extends HttpClientErrorException
This exception corresponds to the HTTP 416 status code.
See Also:
  • Constructor Details

    • HttpRangeNotSatisfiableException

      public HttpRangeNotSatisfiableException(long p_lResourceLength)
      Create a HTTP exception with the status code 416 Range Not Satisfiable.
      Parameters:
      p_lResourceLength - The current length of the resource.
    • HttpRangeNotSatisfiableException

      public HttpRangeNotSatisfiableException(String p_strMessage, long p_lResourceLength)
      Create a HTTP exception with the status code 416 Range Not Satisfiable.
      Parameters:
      p_strMessage - An error message that can be later retrieved by the Throwable.getMessage() method.
      p_lResourceLength - The current length of the resource.
    • HttpRangeNotSatisfiableException

      public HttpRangeNotSatisfiableException(Throwable p_cause, long p_lResourceLength)
      Create a HTTP exception with the status code 416 Range Not Satisfiable.
      Parameters:
      p_cause - The cause that can be later retrieved by the Throwable.getCause() method.
      p_lResourceLength - The current length of the resource.
    • HttpRangeNotSatisfiableException

      public HttpRangeNotSatisfiableException(String p_strMessage, Throwable p_cause, long p_lResourceLength)
      Create a HTTP exception with the status code 416 Range Not Satisfiable.
      Parameters:
      p_strMessage - An error message that can be later retrieved by the Throwable.getMessage() method.
      p_cause - The cause that can be later retrieved by the Throwable.getCause() method.
      p_lResourceLength - The current length of the resource.
  • Method Details

    • getStatus

      public int getStatus()
      Description copied from class: HttpErrorException
      Get the HTTP status associated with this error.
      Overrides:
      getStatus in class HttpErrorException
      Returns:
      The HTTP status code 416 Range Not Satisfiable.
    • getResourceLength

      public long getResourceLength()
      Get the current length of the requested resource.
      Returns:
      The current length of the requested resource.