Package de.uplanet.net.http
Klasse HttpErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.uplanet.net.http.HttpErrorException
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
HttpClientErrorException,HttpServerErrorException
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungHttpErrorException(int p_iStatus) Create a HTTP exception with the given status code.HttpErrorException(int p_iStatus, String p_strMessage) Create a HTTP exception with the given status code.HttpErrorException(int p_iStatus, String p_strMessage, Throwable p_cause) Create a HTTP exception with the given status code.HttpErrorException(int p_iStatus, Throwable p_cause) Create a HTTP exception with the given status code. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintGet the HTTP status associated with this error.Get the HTTP status message associated with this error.Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
HttpErrorException
public HttpErrorException(int p_iStatus) Create a HTTP exception with the given status code.- Parameter:
p_iStatus- The status code.
-
HttpErrorException
Create a HTTP exception with the given status code.- Parameter:
p_iStatus- The status code.p_strMessage- An error message that can be later retrieved by theThrowable.getMessage()method.
-
HttpErrorException
Create a HTTP exception with the given status code.- Parameter:
p_iStatus- The status code.p_cause- The cause that can be later retrieved by theThrowable.getCause()method. Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.
-
HttpErrorException
Create a HTTP exception with the given status code.- Parameter:
p_iStatus- The status code.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. Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.
-
-
Methodendetails
-
getStatus
public int getStatus()Get the HTTP status associated with this error.- Gibt zurück:
- The HTTP status.
-
getStatusMessage
Get the HTTP status message associated with this error.If no message was provided with the constructor, the standard status message will be returned.
- Gibt zurück:
- The status message.
-