public class RerateSubscriptionException extends OperationFailureException
Note
Consult the SAP CC Application Help for more information about the rerating process in an offline charging scenario.
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.
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.
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 and Description |
|---|
RerateSubscriptionException(OperationFailureException e)
Constructs an exception with a nested exception that represents the cause.
|
RerateSubscriptionException(ReratingStatus reratingStatus,
java.util.Date suggestedDate,
java.util.Date adaptedFromDate,
int snapshotId,
java.lang.String previousLockCode)
Constructs an exception with the error details of the failed subscription rerating.
|
| 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.util.Date |
getAdaptedFromDate() |
OperationFailureException |
getException() |
java.lang.String |
getPreviousLockCode() |
ReratingStatus |
getReratingStatus() |
int |
getSnapshotId() |
java.util.Date |
getSuggestedDate() |
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 RerateSubscriptionException(ReratingStatus reratingStatus, java.util.Date suggestedDate, java.util.Date adaptedFromDate, int snapshotId, java.lang.String previousLockCode)
reratingStatus - The status of the subscriptionsuggestedDate - 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 codepublic RerateSubscriptionException(OperationFailureException e)
e - The nested exception to addpublic ReratingStatus getReratingStatus()
public java.util.Date getSuggestedDate()
public java.util.Date getAdaptedFromDate()
public int getSnapshotId()
public java.lang.String getPreviousLockCode()
public OperationFailureException getException()
public void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic 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 addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into