Package de.uplanet.net.http
Class HttpErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.uplanet.net.http.HttpErrorException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- HttpClientErrorException,- HttpServerErrorException
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionHttpErrorException(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.
- 
Method SummaryModifier and TypeMethodDescriptionintGet the HTTP status associated with this error.Get the HTTP status message associated with this error.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
HttpErrorExceptionpublic HttpErrorException(int p_iStatus) Create a HTTP exception with the given status code.- Parameters:
- p_iStatus- The status code.
 
- 
HttpErrorExceptionCreate a HTTP exception with the given status code.- Parameters:
- p_iStatus- The status code.
- p_strMessage- An error message that can be later retrieved by the- Throwable.getMessage()method.
 
- 
HttpErrorExceptionCreate a HTTP exception with the given status code.- Parameters:
- p_iStatus- The status code.
- p_cause- The cause that can be later retrieved by the- Throwable.getCause()method. A- nullvalue is permitted, and indicates that the cause is nonexistent or unknown.
 
- 
HttpErrorExceptionCreate a HTTP exception with the given status code.- Parameters:
- p_iStatus- The status code.
- 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. A- nullvalue is permitted, and indicates that the cause is nonexistent or unknown.
 
 
- 
- 
Method Details- 
getStatuspublic int getStatus()Get the HTTP status associated with this error.- Returns:
- The HTTP status.
 
- 
getStatusMessageGet the HTTP status message associated with this error.If no message was provided with the constructor, the standard status message will be returned. - Returns:
- The status message.
 
 
-