|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.StatelessRateException
public class StatelessRateException
Exception thrown when a rating operation request fails in
the connected SAP CC system.
See the Field Summary and Field Detail sections for more information about the causes and subcauses, detailed information, possible impacts, and troubleshooting action in next steps.
Depending on your business requirements, design and develop the handling functions in your client application.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="statelessRateFault">
<xs:complexType>
<xs:attribute name="reason" type="StatelessRateFaultReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="StatelessRateFaultReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="chargeCodeMissing"/>
<xs:enumeration value="ratingDateMissing"/>
<xs:enumeration value="statelessRatingEventMissing"/>
<xs:enumeration value="statelessRatingContextMissing"/>
<xs:enumeration value="effectiveDateMissing"/>
<xs:enumeration value="chargeCodeNotCorrespondingToACharge"/>
<xs:enumeration value="chargeCodeNotCorrespondingToAMasterCharge"/>
<xs:enumeration value="ratingDateBeforeEffectiveDate"/>
<xs:enumeration value="lastRatingDateBeforeEffectiveDate"/>
<xs:enumeration value="ratingDateBeforeLastRatingDate"/>
<xs:enumeration value="missingCurrency"/>
<xs:enumeration value="unknownCurrency"/>
<xs:enumeration value="otherReason"/>
</xs:restriction>
</xs:simpleType>
| Field Summary | |
|---|---|
static int |
CHARGE_CODE_MISSING
Constant for chargeCodeMissing error. |
static int |
CHARGE_CODE_NOT_CORRESPONDING_TO_A_CHARGE
Constant for chargeCodeNotCorrespondingToACharge error. |
static int |
CHARGE_CODE_NOT_CORRESPONDING_TO_A_MASTER_CHARGE
Constant for chargeCodeNotCorrespondingToAMasterCharge error. |
static int |
EFFECTIVE_DATE_MISSING
Constant for effectiveDateMissing error. |
static int |
LAST_RATING_DATE_BEFORE_EFFECTIVE_DATE
Constant for lastRatingDateBeforeEffectiveDate error. |
static int |
MISSING_CURRENCY
Constant for missingCurrency error. |
static int |
OTHER_REASON
Constant for otherReason error. |
static int |
RATING_DATE_BEFORE_EFFECTIVE_DATE
Constant for ratingDateBeforeEffectiveDate error. |
static int |
RATING_DATE_BEFORE_LAST_RATING_DATE
Constant for ratingDateBeforeLastRatingDate error. |
static int |
RATING_DATE_MISSING
Constant for ratingDateMissing error. |
static int |
STATELESS_RATING_CONTEXT_MISSING
Constant for statelessRatingContextMissing error. |
static int |
STATELESS_RATING_EVENT_INVALID_TYPE
Constant for statelessRatingEventInvalidType error. |
static int |
STATELESS_RATING_EVENT_MISSING
Constant for statelessRatingEventMissing error. |
static int |
UNKNOWN_CURRENCY
Constant for unknownCurrency error. |
| Constructor Summary | |
|---|---|
StatelessRateException()
Constructs an empty exception. |
|
StatelessRateException(int reason)
Constructs an exception with the reason. |
|
StatelessRateException(int reason,
java.lang.String message)
Constructs an exception with the reason. |
|
| Method Summary | |
|---|---|
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. |
int |
getReason()
Gets the reason value. |
static java.lang.String |
getReasonString(int reason)
|
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. |
void |
setReason(int reason)
Sets the reason value. |
| Methods inherited from class com.highdeal.hci.OperationFailureException |
|---|
getOperandReference |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int OTHER_REASON
otherReason error.
public static final int CHARGE_CODE_MISSING
chargeCodeMissing error.
public static final int RATING_DATE_MISSING
ratingDateMissing error.
public static final int STATELESS_RATING_EVENT_MISSING
statelessRatingEventMissing error.
public static final int STATELESS_RATING_CONTEXT_MISSING
statelessRatingContextMissing error.
public static final int EFFECTIVE_DATE_MISSING
effectiveDateMissing error.
public static final int CHARGE_CODE_NOT_CORRESPONDING_TO_A_CHARGE
chargeCodeNotCorrespondingToACharge error.
public static final int CHARGE_CODE_NOT_CORRESPONDING_TO_A_MASTER_CHARGE
chargeCodeNotCorrespondingToAMasterCharge error.
public static final int RATING_DATE_BEFORE_EFFECTIVE_DATE
ratingDateBeforeEffectiveDate error.
public static final int LAST_RATING_DATE_BEFORE_EFFECTIVE_DATE
lastRatingDateBeforeEffectiveDate error.
public static final int RATING_DATE_BEFORE_LAST_RATING_DATE
ratingDateBeforeLastRatingDate error.
public static final int STATELESS_RATING_EVENT_INVALID_TYPE
statelessRatingEventInvalidType error.
public static final int MISSING_CURRENCY
missingCurrency error.
public static final int UNKNOWN_CURRENCY
unknownCurrency error.
| Constructor Detail |
|---|
public StatelessRateException()
public StatelessRateException(int reason)
reason - The reason
public StatelessRateException(int reason,
java.lang.String message)
reason - The reasonmessage - The message| Method Detail |
|---|
public int getReason()
public void setReason(int reason)
reason - The reason valuepublic void setAttributes(XMLAttributes atts)
XMLMarshallable
atts - The XML attributes of the current element
public 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)
XMLMarshallable
cData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
output - The XML output to marshal the object intopublic static final java.lang.String getReasonString(int reason)
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||