Package de.uplanet.net.http
Class HttpServiceUnavailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.uplanet.net.http.HttpErrorException
de.uplanet.net.http.HttpServerErrorException
de.uplanet.net.http.HttpServiceUnavailableException
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate a HTTP exception with the status code503 Service Unavailable
.HttpServiceUnavailableException
(String p_strMessage) Create a HTTP exception with the status code503 Service Unavailable
.HttpServiceUnavailableException
(String p_strMessage, Throwable p_cause) Create a HTTP exception with the status code503 Service Unavailable
.HttpServiceUnavailableException
(Throwable p_cause) Create a HTTP exception with the status code503 Service Unavailable
. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the HTTP status associated with this error.Methods inherited from class de.uplanet.net.http.HttpErrorException
getStatusMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HttpServiceUnavailableException
public HttpServiceUnavailableException()Create a HTTP exception with the status code503 Service Unavailable
. -
HttpServiceUnavailableException
Create a HTTP exception with the status code503 Service Unavailable
.- Parameters:
p_strMessage
- An error message that can be later retrieved by theThrowable.getMessage()
method.
-
HttpServiceUnavailableException
Create a HTTP exception with the status code503 Service Unavailable
.- Parameters:
p_cause
- The cause that can be later retrieved by theThrowable.getCause()
method.
-
HttpServiceUnavailableException
Create a HTTP exception with the status code503 Service Unavailable
.- Parameters:
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.
-
-
Method Details
-
getStatus
public int getStatus()Description copied from class:HttpErrorException
Get the HTTP status associated with this error.- Overrides:
getStatus
in classHttpErrorException
- Returns:
- The HTTP status code
503 Service Unavailable
.
-