Class CommunicationFailureException

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

public class CommunicationFailureException extends 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

  • the SAP CC system cannot be reached
  • the client-side timeout expires

Exception and Error Handling

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

See Also:
  • Constructor Details

    • CommunicationFailureException

      public CommunicationFailureException()
      Constructs an empty exception.
    • CommunicationFailureException

      public CommunicationFailureException(String hostInfo)
      Constructs.
      Parameters:
      hostInfo - The host information
    • CommunicationFailureException

      public CommunicationFailureException(String hostInfo, int httpResponseCode)
      Constructs.
  • Method Details

    • getHostInfo

      public String getHostInfo()
      Returns the host information as a string.
      Returns:
      The hostInfo
    • setHostInfo

      public void setHostInfo(String hostInfo)
      Sets the host information.
      Parameters:
      hostInfo - The hostInfo to set
    • getHttpResponseCode

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