Package com.highdeal.hci
Class CommunicationFailureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.CommunicationFailureException
- All Implemented Interfaces:
Serializable
Exception thrown when the HCI communication between your client application and
the SAP CC Core Server system fails; get the
host information (as a string) and
the numerical response code of the HTTP communication layer.
Reasons
See the numerical response code by using
the getHttpResponseCode() method.
Examples
- the SAP CC system cannot be reached
- the client-side
timeoutexpires
Exception and Error Handling
Depending on your business requirements, design and develop the relevant error handling functions in your client application.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty exception.CommunicationFailureException(String hostInfo) Constructs.CommunicationFailureException(String hostInfo, int httpResponseCode) Constructs. -
Method Summary
Modifier and TypeMethodDescriptionReturns the host information as a string.intReturns the numerical response code of HTTP layer.voidsetHostInfo(String hostInfo) Sets the host information.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommunicationFailureException
public CommunicationFailureException()Constructs an empty exception. -
CommunicationFailureException
Constructs.- Parameters:
hostInfo- The host information
-
CommunicationFailureException
Constructs.
-
-
Method Details
-
getHostInfo
Returns the host information as a string.- Returns:
- The hostInfo
-
setHostInfo
Sets the host information.- Parameters:
hostInfo- The hostInfo to set
-
getHttpResponseCode
public int getHttpResponseCode()Returns the numerical response code of HTTP layer.
-