com.highdeal.hci
Class CommunicationFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.highdeal.hci.CommunicationFailureException
All Implemented Interfaces:
java.io.Serializable

public class CommunicationFailureException
extends java.lang.Exception

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

Exception and Error Handling

Depending on your business requirements, design and develop the relevant error handling functions in your client application.

See Also:
MessageSender, BadMessageFormatException, Serialized Form

Constructor Summary
CommunicationFailureException()
          Constructs an empty exception.
CommunicationFailureException(java.lang.String hostInfo)
          Constructs.
CommunicationFailureException(java.lang.String hostInfo, int httpResponseCode)
          Constructs.
 
Method Summary
 java.lang.String getHostInfo()
          Returns the host information as a string.
 int getHttpResponseCode()
          Returns the numerical response code of HTTP layer.
 void setHostInfo(java.lang.String hostInfo)
          Sets the host information.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommunicationFailureException

public CommunicationFailureException()
Constructs an empty exception.


CommunicationFailureException

public CommunicationFailureException(java.lang.String hostInfo)
Constructs.

Parameters:
hostInfo - The host information

CommunicationFailureException

public CommunicationFailureException(java.lang.String hostInfo,
                                     int httpResponseCode)
Constructs.

Method Detail

getHostInfo

public java.lang.String getHostInfo()
Returns the host information as a string.

Returns:
The hostInfo

setHostInfo

public void setHostInfo(java.lang.String hostInfo)
Sets the host information.

Parameters:
hostInfo - The hostInfo to set

getHttpResponseCode

public int getHttpResponseCode()
Returns the numerical response code of HTTP layer.


Document Published: October 2015 (SAP CC 4.0 SP10 and Later)