Class CommunicationFailureException
- All Implemented Interfaces:
Serializable
customized charging client.
(in opposite
to the ServerFailureException that denotes a failure which occurred on server side in the connected SAP CC system).
Note
This exception incorporates all nonbusiness exceptions that can occur on
client side when your charging client
requests some service operations from the SAP CC system
via the Message TCP high-speed technical interface.
Refer also to the business exceptions specified by this Java API Reference documentation.
Reasons
The available reasons that are carried by this exception are:
| Failure | Reason Code | Customizing and Integration | Troubleshooting (Next Steps) |
|---|---|---|---|
Unsupported failure |
0 |
Note To design the exception and error handling functions (automated treatments, logging and manual treatments), see the Field Detail section in this topic. Refer to the information available in the Customizing subsection of each failure to develop your integration code. |
Note For troubleshooting investigations, see the Field Detail section in this topic. Refer to the information available in the Next Steps subsection of each failure. |
Connection closed |
1 | ||
Too long message |
2 | ||
Interrupted timeout communication |
3 | ||
Server system unreachable |
4 | ||
Connection queue full (deprecated and now revoked) |
5 |
Consider the detailed information in the Field Detail section.
Note
See the Field Detail section for more information about troubleshooting:
- determine some integration and implementation changes that are necessary during the implementation project
- perform troubleshooting investigations to correct a potential anomaly
Implementation in Your Client Application
Exception and Error Handling
Depending on your business requirements design and develop the handling functions in your client application.
For each exception reason, you determine the expected treatments in your
charging client.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int1: Failure when the communication between your client application and the SAP CC Core Server system is closed or is closing.static final intDeprecated.static final int3: Failure when the comunication has been interrupted due to timeout specified by thecharging clientin your client application.static final int4: Yourcharging clienthas lost all connections to the dispatcher instances of the SAP CC Core Server system.static final int2: Failure whn the sent or received message cannot be managed by the communication protocol because it is too long.static final int0: The reason is unknown or unsupported; If this reason is signaled, it could denote a bug in the SAP CC software. -
Constructor Summary
ConstructorsConstructorDescriptionCommunicationFailureException(int reason, String msg) The reason/message exception builder.CommunicationFailureException(int reason, String msg, Throwable t) FullExceptionbuilder.CommunicationFailureException(int reason, Throwable t) The reason/throwable exception builder. -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns a comprehensive description of the exception.intReturns the numerical reason code of the exception.Returns the reason code as a string; Prefer the numerical codes and availableJava constants.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
UNSUPPORTED_FAILURE
public static final int UNSUPPORTED_FAILURE0: The reason is unknown or unsupported; If this reason is signaled, it could denote a bug in the SAP CC software. Contact your SAP Support Team.Recommendation
In a production system landscape, please contact a support specialist from your SAP Support Team and report an incident.
- See Also:
-
CONNECTION_CLOSED
public static final int CONNECTION_CLOSED1: Failure when the communication between your client application and the SAP CC Core Server system is closed or is closing.Next Steps
Perform the following investigations to troubleshoot your problem:
- Verify that the instances of the SAP CC Core Server system are up and running
- Verify that firewalls have been disabled
- See Also:
-
TOO_LONG_MESSAGE
public static final int TOO_LONG_MESSAGE2: Failure whn the sent or received message cannot be managed by the communication protocol because it is too long.Next Steps
Perform the following investigations to troubleshoot your problem:
- Verify that your client application (mediation system) does not send messages larger than 1 Mb
- Verify that firewalls have been disabled
- See Also:
-
INTERRUPTED_TIMEOUT_COMMUNICATION
public static final int INTERRUPTED_TIMEOUT_COMMUNICATION3: Failure when the comunication has been interrupted due to timeout specified by thecharging clientin your client application.- See Also:
-
SERVER_UNREACHABLE
public static final int SERVER_UNREACHABLE4: Yourcharging clienthas lost all connections to the dispatcher instances of the SAP CC Core Server system.Next Steps
Monitor the connections between your client application (mediation system) and the SAP CC system:
-
In the SAP CC Admin+ user interface with
the
list_clientscommand. - In CA Introscope for SAP
- In SAP Solution Manager
Refer to the SAP CC Operations Guide for more information about monitoring the SAP CC system landscape.
- See Also:
-
In the SAP CC Admin+ user interface with
the
-
CONNECTION_QUEUE_FULL
Deprecated.This reason code is deprecated and can no longer be create in yourcharging client.5: Failure when the connection queue is full in your client application (mediation system).- See Also:
-
-
Constructor Details
-
CommunicationFailureException
FullExceptionbuilder.- Parameters:
reason- The exception reasonmsg- The exception messaget- The nested (Throwable) exception
-
CommunicationFailureException
The reason/message exception builder.- Parameters:
reason- The exception reasonmsg- The exception message
-
CommunicationFailureException
The reason/throwable exception builder.- Parameters:
reason- The exception reasont- The nested (Throwable) exception
-
-
Method Details
-
getReason
public int getReason()Returns the numerical reason code of the exception. The available codes are:- Returns:
- The reason of the exception
-
getMessage
Returns a comprehensive description of the exception.- Overrides:
getMessagein classThrowable- Returns:
- A readable exception description
-
attach
-
attachment
-
reasonToString
Returns the reason code as a string; Prefer the numerical codes and availableJava constants. The available codes are:unsupportedFailureconnectionClosedtooLongMessageinterruptedTimeoutCommunicationserverUnreachableconnectionQueueFull(deprecated and revoked)
-
charging client.