Class BatchChargeException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
collection of chargeable items fails in the connected SAP CC Core Server system;
Batch charging is an operation available in
the Offline Charging Services (OFCS) provided by
SAP Convergent Charging.
This exception includes a list of subexceptions that refer to an initial chargeable item. The possible subexceptions are:
Refer to their documentation.
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.
Related Business Operations
Your charging client has triggered one of the following batch operations:
| Async. Comm. | Sync. Comm. |
|---|---|
| batchCharge(java.util.Vector, java.lang.Long, short, com.highdeal.pnr.hci.AccessibleChargeType, int, boolean, com.highdeal.hci.MessageHeader.TransactionMode, java.lang.String, com.highdeal.cnd.message.BatchChargeEventListener) | batchCharge(java.util.Vector, java.lang.Long, short, com.highdeal.pnr.hci.AccessibleChargeType, int, boolean, com.highdeal.hci.MessageHeader.TransactionMode, java.lang.String)} |
Reasons
There is no specific reason defined for the overall exception. Each subexception relates to an issue with one particular initial chargeable item. The first-level reasons are:
| Failure | Reason Code (HCI) | Customizing and Integration | Troubleshooting (Next Steps) |
|---|---|---|---|
Forbidden charge failure |
forbiddenChargeFault |
To design the exception and error handling functions (automated treatments, logging and manual treatments), see the Field Detail section of this exception. Refer to the information available in the Customizing subsection of each possible subfailure to develop your integration code. |
Note For troubleshooting investigations, see the Field Detail section. Refer to the information available in the Next Steps subsection of each subfailure. |
Transaction clearing failure |
transactionClearingFault |
To design the exception and error handling functions (automated treatments, logging and manual treatments), see the Field Detail section of this exception. Refer to the information available in the Customizing subsection of each possible subfailure to develop your integration code. |
Note For troubleshooting investigations, see the Field Detail section. Refer to the information available in the Next Steps subsection of each subfailure. |
Invalid item failure |
invalidItemFault |
To design the exception and error handling functions (automated treatments, logging and manual treatments), see the Field Detail section of this exception. Refer to the information available in the Customizing subsection of each possible subfailure to develop your integration code. |
Note For troubleshooting investigations, see the Field Detail section. Refer to the information available in the Next Steps subsection of each subfailure. |
Implementation in Your Client Application
Exception and Error Handling
Depending on your business requirements, design and develop the handling functions in your client application.
Get the list of subexceptions. Use the index information to determine the chargeable items
that cannot be charged in batch mode by the SAP CC system.
Similar Exception
See the Acquisition exception in this Java API Reference documentation.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="batchChargeFault">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="forbiddenChargeFault" minOccurs="1" maxOccurs="1"/>
<xs:element ref="transactionClearingFault" minOccurs="1" maxOccurs="1"/>
<xs:element ref="invalidItemFault" minOccurs="1" maxOccurs="1"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="index" type="xs:integer" use="optional"/>
</xs:complexType>
</xs:element>
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty multiple charge exception.Constructs an exception with an operation failure exception that explains why the batch charging has failed.BatchChargeException(OperationFailureException error, int index) Constructs an exception with an operation failure exception that explain why the multiple charging has failed. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.intgetIndex()In the transmittedchargeParameterslist, returns the position of thechargeable itemthat cannot be charged.Returns the error that forbids the charging operation.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.Methods inherited from class com.highdeal.hci.OperationFailureException
getOperandReferenceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BatchChargeException
public BatchChargeException()Builds an empty multiple charge exception. -
BatchChargeException
Constructs an exception with an operation failure exception that explain why the multiple charging has failed. If the index is greater than or equal to 0, this identifies the chargeable item which fails in the list ofchargeParameters. If the index is equal to -1, it means the exception occurred before the Activation process of the chargeable items.- Parameters:
error- The exceptionindex- The position of chargeable item which fails inchargeParameterslist
-
BatchChargeException
Constructs an exception with an operation failure exception that explains why the batch charging has failed.- Parameters:
error- The exception
-
-
Method Details
-
getInternalError
Returns the error that forbids the charging operation.- Returns:
- The internal error
-
getIndex
public int getIndex()In the transmittedchargeParameterslist, returns the position of thechargeable itemthat cannot be charged.If the index is greater than or equal to 0, this identifies the chargeable item which fails in the list of
chargeParameters.Note
If the index is equal to -1, it means the exception occurred before the activation process of the chargeable items.
- Returns:
- The position in
chargeParametersof chargeable item which fails
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Parameters:
output- TheXML outputto marshal the object into
-