public class AcquisitionException extends OperationFailureException
collection of chargeable items fails in the connected SAP CC Core Server system;
Batch acquisition is an operation available in
the Offline Charging Services (OFCS) provided by
SAP Convergent Charging.
Important Note
This exception is specified in a Java package of
HCI but it is only available in the
Message TCP technical interface
of SAP Convergent Charging.
Your charging client has triggered one of the following batch operations:
| Async. Comm. | Sync. Comm. |
|---|---|
acquire(..) operation
specified in the AsyncBatchServiceClient class
|
acquire(..) operation specified in the BatchServiceClient class
|
See all the available reasons detailed in this Java enum.
| Failure | Reason Code | Customizing and Integration | Troubleshooting (Next Steps) |
|---|---|---|---|
Acquisition not allowed
|
7 ACQUISITION_NOT_ALLOWED |
Note To design the exception and error handling functions (automated treatments, logging and manual treatments), see the Constant Detail section. Refer to the information available in the Customizing subsection of each failure to develop your integration code. |
Note For troubleshooting investigations, see the Constant Detail section. Refer to the information available in the Next Steps subsection of each failure. |
Consider the detailed information in
the Constant Detail section
in the AcquisitionException.AcquisitionExceptionReason enum.
The SAP CC system includes this exception in an Acquisition Operation result.
The exception contains a reason and a message that describe the error which occurred
during the acquisition.
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 the Batch Charge exception in this Java API Reference documentation.
| Modifier and Type | Class and Description |
|---|---|
static class |
AcquisitionException.AcquisitionExceptionReason
This
enumeration defines the possible reasons for the failure of a direct acquisition operation of chargeable items. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
EXCEPTION_NAME
The XML tag name of this exception: "acquisitionFault"
|
| Constructor and Description |
|---|
AcquisitionException(AcquisitionException.AcquisitionExceptionReason reason,
java.lang.String message)
Creates an
AcquisitionException from a reason and a message. |
AcquisitionException(int reasonCode,
java.lang.String message)
Creates an
AcquisitionException from a numeric reason code and a message. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getMessage() |
AcquisitionException.AcquisitionExceptionReason |
getReason()
Gets the
enumerated reason for this exception. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
getOperandReferencepublic static final java.lang.String EXCEPTION_NAME
public AcquisitionException(int reasonCode,
java.lang.String message)
AcquisitionException from a numeric reason code and a message.reasonCode - The numeric code of the reason of the exceptionmessage - The message of the exceptionpublic AcquisitionException(AcquisitionException.AcquisitionExceptionReason reason, java.lang.String message)
AcquisitionException from a reason and a message.reason - The reason of the exceptionmessage - The message of the exceptionpublic AcquisitionException.AcquisitionExceptionReason getReason()
enumerated reason for this exception.failure reason of this exceptionpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into