Class RerateSubscriptionException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Note
Consult the SAP CC Application Help for more information about the rerating process in an offline charging scenario.
Reasons
The rerating operation of a subscription in customer master data
may fail for several possible reasons.
The nested exception can be:
Note
Consult the specifications of these exceptions in this Java API Reference documentation.
They are detailed in the HCI infrastructure (in the com.highdeal.pnr.hci package) but they are relevant
in the Message TCP technical interface.
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:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="rerateSubscriptionFault">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="serverFault" minOccurs="1" maxOccurs="1"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="reratingStatus" type="xs:ReratingStatus" />
<xs:attribute name="suggestedDate" type="xs:DateTime" />
<xs:attribute name="snapshotId" type="xs:integer" />
<xs:attribute name="adaptedFromDate" type="xs:DateTime" />
<xs:attribute name="previousLockCode" type="xs:String" />
</xs:complexType>
</xs:element>
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an exception with a nested exception that represents the cause.RerateSubscriptionException(ReratingStatus reratingStatus, Date suggestedDate, Date adaptedFromDate, int snapshotId, String previousLockCode) Constructs an exception with the error details of the failed subscription rerating. -
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.intvoidmarshal(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
-
RerateSubscriptionException
public RerateSubscriptionException(ReratingStatus reratingStatus, Date suggestedDate, Date adaptedFromDate, int snapshotId, String previousLockCode) Constructs an exception with the error details of the failed subscription rerating.- Parameters:
reratingStatus- The status of thesubscriptionsuggestedDate- The date suggested by the external billing systemadaptedFromDate- The restoration date adapted by the counter restorationsnapshotId- The snapshot ID retrieved by the counter restorationpreviousLockCode- The previous lock code
-
RerateSubscriptionException
Constructs an exception with a nested exception that represents the cause.- Parameters:
e- The nested exception to add
-
-
Method Details
-
getReratingStatus
- Returns:
- The rerating status
-
getSuggestedDate
- Returns:
- The suggested date
-
getAdaptedFromDate
- Returns:
- The adapted from date
-
getSnapshotId
public int getSnapshotId()- Returns:
- The snapshot ID
-
getPreviousLockCode
- Returns:
- The previous lock code
-
getException
- Returns:
- The nested OperationFailureException
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
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
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data 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
-