public class StatelessRateException extends OperationFailureException
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>
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
StatelessRateException()
Constructs an empty exception.
|
StatelessRateException(int reason)
Constructs an exception with the reason.
|
StatelessRateException(int reason,
String message)
Constructs an exception with the reason.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(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 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.
|
getOperandReferenceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic 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.public StatelessRateException()
public StatelessRateException(int reason)
reason - The reasonpublic StatelessRateException(int reason,
String message)
reason - The reasonmessage - The messagepublic int getReason()
public void setReason(int reason)
reason - The reason valuepublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(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(String cData)
XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic static final String getReasonString(int reason)