com.highdeal.pnr.hci
Class StatelessRateException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.highdeal.hci.OperationFailureException
              extended by com.highdeal.pnr.hci.StatelessRateException
All Implemented Interfaces:
OperationResult, XMLMarshallable, java.io.Serializable

public class StatelessRateException
extends OperationFailureException

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:
Serialized Form

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
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

OTHER_REASON

public static final int OTHER_REASON
Constant for otherReason error.

See Also:
Constant Field Values

CHARGE_CODE_MISSING

public static final int CHARGE_CODE_MISSING
Constant for chargeCodeMissing error.

See Also:
Constant Field Values

RATING_DATE_MISSING

public static final int RATING_DATE_MISSING
Constant for ratingDateMissing error.

See Also:
Constant Field Values

STATELESS_RATING_EVENT_MISSING

public static final int STATELESS_RATING_EVENT_MISSING
Constant for statelessRatingEventMissing error.

See Also:
Constant Field Values

STATELESS_RATING_CONTEXT_MISSING

public static final int STATELESS_RATING_CONTEXT_MISSING
Constant for statelessRatingContextMissing error.

See Also:
Constant Field Values

EFFECTIVE_DATE_MISSING

public static final int EFFECTIVE_DATE_MISSING
Constant for effectiveDateMissing error.

See Also:
Constant Field Values

CHARGE_CODE_NOT_CORRESPONDING_TO_A_CHARGE

public static final int CHARGE_CODE_NOT_CORRESPONDING_TO_A_CHARGE
Constant for chargeCodeNotCorrespondingToACharge error.

See Also:
Constant Field Values

CHARGE_CODE_NOT_CORRESPONDING_TO_A_MASTER_CHARGE

public static final int CHARGE_CODE_NOT_CORRESPONDING_TO_A_MASTER_CHARGE
Constant for chargeCodeNotCorrespondingToAMasterCharge error.

See Also:
Constant Field Values

RATING_DATE_BEFORE_EFFECTIVE_DATE

public static final int RATING_DATE_BEFORE_EFFECTIVE_DATE
Constant for ratingDateBeforeEffectiveDate error.

See Also:
Constant Field Values

LAST_RATING_DATE_BEFORE_EFFECTIVE_DATE

public static final int LAST_RATING_DATE_BEFORE_EFFECTIVE_DATE
Constant for lastRatingDateBeforeEffectiveDate error.

See Also:
Constant Field Values

RATING_DATE_BEFORE_LAST_RATING_DATE

public static final int RATING_DATE_BEFORE_LAST_RATING_DATE
Constant for ratingDateBeforeLastRatingDate error.

See Also:
Constant Field Values

STATELESS_RATING_EVENT_INVALID_TYPE

public static final int STATELESS_RATING_EVENT_INVALID_TYPE
Constant for statelessRatingEventInvalidType error.

See Also:
Constant Field Values

MISSING_CURRENCY

public static final int MISSING_CURRENCY
Constant for missingCurrency error.

See Also:
Constant Field Values

UNKNOWN_CURRENCY

public static final int UNKNOWN_CURRENCY
Constant for unknownCurrency error.

See Also:
Constant Field Values
Constructor Detail

StatelessRateException

public StatelessRateException()
Constructs an empty exception.


StatelessRateException

public StatelessRateException(int reason)
Constructs an exception with the reason.

Parameters:
reason - The reason

StatelessRateException

public StatelessRateException(int reason,
                              java.lang.String message)
Constructs an exception with the reason.

Parameters:
reason - The reason
message - The message
Method Detail

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

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Parameters:
atts - The XML attributes of the current element

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Parameters:
tagName - The name of tag for the child
child - The child to be added

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Parameters:
cData - The character data to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Parameters:
output - The XML output to marshal the object into

getReasonString

public static final java.lang.String getReasonString(int reason)

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)