Package com.highdeal.pnr.hci
Class StatelessRateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.StatelessRateException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when a
rating operation request fails in
the connected SAP CC system.
Reasons
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.
Implementation in Your Client Application
Exception and Error Handling
Depending on your business requirements, design and develop the handling functions in your client application.
- See Also:
XML API for HCI
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
FieldsModifier and TypeFieldDescriptionstatic final intConstant forchargeCodeMissingerror.static final intConstant forchargeCodeNotCorrespondingToAChargeerror.static final intConstant forchargeCodeNotCorrespondingToAMasterChargeerror.static final intConstant foreffectiveDateMissingerror.static final intConstant forlastRatingDateBeforeEffectiveDateerror.static final intConstant formissingCurrencyerror.static final intConstant forotherReasonerror.static final intConstant forratingDateBeforeEffectiveDateerror.static final intConstant forratingDateBeforeLastRatingDateerror.static final intConstant forratingDateMissingerror.static final intConstant forstatelessRatingContextMissingerror.static final intConstant forstatelessRatingEventInvalidTypeerror.static final intConstant forstatelessRatingEventMissingerror.static final intConstant forunknownCurrencyerror. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty exception.StatelessRateException(int reason) Constructs an exception with the reason.StatelessRateException(int reason, String message) Constructs an exception with the reason. -
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.intGets the reason value.static final StringgetReasonString(int reason) 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.voidsetReason(int reason) Sets the reason value.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
-
Field Details
-
OTHER_REASON
public static final int OTHER_REASONConstant forotherReasonerror.- See Also:
-
CHARGE_CODE_MISSING
public static final int CHARGE_CODE_MISSINGConstant forchargeCodeMissingerror.- See Also:
-
RATING_DATE_MISSING
public static final int RATING_DATE_MISSINGConstant forratingDateMissingerror.- See Also:
-
STATELESS_RATING_EVENT_MISSING
public static final int STATELESS_RATING_EVENT_MISSINGConstant forstatelessRatingEventMissingerror.- See Also:
-
STATELESS_RATING_CONTEXT_MISSING
public static final int STATELESS_RATING_CONTEXT_MISSINGConstant forstatelessRatingContextMissingerror.- See Also:
-
EFFECTIVE_DATE_MISSING
public static final int EFFECTIVE_DATE_MISSINGConstant foreffectiveDateMissingerror.- See Also:
-
CHARGE_CODE_NOT_CORRESPONDING_TO_A_CHARGE
public static final int CHARGE_CODE_NOT_CORRESPONDING_TO_A_CHARGEConstant forchargeCodeNotCorrespondingToAChargeerror.- See Also:
-
CHARGE_CODE_NOT_CORRESPONDING_TO_A_MASTER_CHARGE
public static final int CHARGE_CODE_NOT_CORRESPONDING_TO_A_MASTER_CHARGEConstant forchargeCodeNotCorrespondingToAMasterChargeerror.- See Also:
-
RATING_DATE_BEFORE_EFFECTIVE_DATE
public static final int RATING_DATE_BEFORE_EFFECTIVE_DATEConstant forratingDateBeforeEffectiveDateerror.- See Also:
-
LAST_RATING_DATE_BEFORE_EFFECTIVE_DATE
public static final int LAST_RATING_DATE_BEFORE_EFFECTIVE_DATEConstant forlastRatingDateBeforeEffectiveDateerror.- See Also:
-
RATING_DATE_BEFORE_LAST_RATING_DATE
public static final int RATING_DATE_BEFORE_LAST_RATING_DATEConstant forratingDateBeforeLastRatingDateerror.- See Also:
-
STATELESS_RATING_EVENT_INVALID_TYPE
public static final int STATELESS_RATING_EVENT_INVALID_TYPEConstant forstatelessRatingEventInvalidTypeerror.- See Also:
-
MISSING_CURRENCY
public static final int MISSING_CURRENCYConstant formissingCurrencyerror.- See Also:
-
UNKNOWN_CURRENCY
public static final int UNKNOWN_CURRENCYConstant forunknownCurrencyerror.- See Also:
-
-
Constructor Details
-
StatelessRateException
public StatelessRateException()Constructs an empty exception. -
StatelessRateException
public StatelessRateException(int reason) Constructs an exception with the reason.- Parameters:
reason- The reason
-
StatelessRateException
Constructs an exception with the reason.- Parameters:
reason- The reasonmessage- The message
-
-
Method Details
-
getReason
public int getReason()Gets the reason value.- Returns:
- The reason value
-
setReason
public void setReason(int reason) Sets the reason value.- Parameters:
reason- The reason value
-
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
-
getReasonString
-