Klasse HttpRangeNotSatisfiableException

Alle implementierten Schnittstellen:
Serializable

@ResponseStatus(REQUESTED_RANGE_NOT_SATISFIABLE) public final class HttpRangeNotSatisfiableException extends HttpClientErrorException
This exception corresponds to the HTTP 416 status code.
Siehe auch:
  • Konstruktordetails

    • HttpRangeNotSatisfiableException

      public HttpRangeNotSatisfiableException(long p_lResourceLength)
      Create a HTTP exception with the status code 416 Range Not Satisfiable.
      Parameter:
      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.
      Parameter:
      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.
      Parameter:
      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.
      Parameter:
      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.
  • Methodendetails

    • getStatus

      public int getStatus()
      Beschreibung aus Klasse kopiert: HttpErrorException
      Get the HTTP status associated with this error.
      Setzt außer Kraft:
      getStatus in Klasse HttpErrorException
      Gibt zurück:
      The HTTP status code 416 Range Not Satisfiable.
    • getResourceLength

      public long getResourceLength()
      Get the current length of the requested resource.
      Gibt zurück:
      The current length of the requested resource.