Package de.uplanet.net.http
Klasse HttpRangeNotSatisfiableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.uplanet.net.http.HttpErrorException
de.uplanet.net.http.HttpClientErrorException
de.uplanet.net.http.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:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungHttpRangeNotSatisfiableException(long p_lResourceLength) Create a HTTP exception with the status code416 Range Not Satisfiable.HttpRangeNotSatisfiableException(String p_strMessage, long p_lResourceLength) Create a HTTP exception with the status code416 Range Not Satisfiable.HttpRangeNotSatisfiableException(String p_strMessage, Throwable p_cause, long p_lResourceLength) Create a HTTP exception with the status code416 Range Not Satisfiable.HttpRangeNotSatisfiableException(Throwable p_cause, long p_lResourceLength) Create a HTTP exception with the status code416 Range Not Satisfiable. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunglongGet the current length of the requested resource.intGet the HTTP status associated with this error.Von Klasse geerbte Methoden de.uplanet.net.http.HttpErrorException
getStatusMessageVon Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
HttpRangeNotSatisfiableException
public HttpRangeNotSatisfiableException(long p_lResourceLength) Create a HTTP exception with the status code416 Range Not Satisfiable.- Parameter:
p_lResourceLength- The current length of the resource.
-
HttpRangeNotSatisfiableException
Create a HTTP exception with the status code416 Range Not Satisfiable.- Parameter:
p_strMessage- An error message that can be later retrieved by theThrowable.getMessage()method.p_lResourceLength- The current length of the resource.
-
HttpRangeNotSatisfiableException
Create a HTTP exception with the status code416 Range Not Satisfiable.- Parameter:
p_cause- The cause that can be later retrieved by theThrowable.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 code416 Range Not Satisfiable.- Parameter:
p_strMessage- An error message that can be later retrieved by theThrowable.getMessage()method.p_cause- The cause that can be later retrieved by theThrowable.getCause()method.p_lResourceLength- The current length of the resource.
-
-
Methodendetails
-
getStatus
public int getStatus()Beschreibung aus Klasse kopiert:HttpErrorExceptionGet the HTTP status associated with this error.- Setzt außer Kraft:
getStatusin KlasseHttpErrorException- 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.
-