public class CommunicationFailureException extends Exception
host information (as a string) and
the numerical response code of the HTTP communication layer.
See the numerical response code by using
the getHttpResponseCode() method.
Examples
timeout expires
Depending on your business requirements, design and develop the relevant error handling functions in your client application.
MessageSender,
BadMessageFormatException,
Serialized Form| Constructor and Description |
|---|
CommunicationFailureException()
Constructs an empty exception.
|
CommunicationFailureException(String hostInfo)
Constructs.
|
CommunicationFailureException(String hostInfo,
int httpResponseCode)
Constructs.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHostInfo()
Returns the host information as a string.
|
int |
getHttpResponseCode()
Returns the numerical response code of HTTP layer.
|
void |
setHostInfo(String hostInfo)
Sets the host information.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CommunicationFailureException()
public CommunicationFailureException(String hostInfo)
hostInfo - The host informationpublic CommunicationFailureException(String hostInfo, int httpResponseCode)
public String getHostInfo()
public void setHostInfo(String hostInfo)
hostInfo - The hostInfo to setpublic int getHttpResponseCode()