Class StatelessRateException

All Implemented Interfaces:
OperationResult, XMLMarshallable, 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:

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 Details

    • OTHER_REASON

      public static final int OTHER_REASON
      Constant for otherReason error.
      See Also:
    • CHARGE_CODE_MISSING

      public static final int CHARGE_CODE_MISSING
      Constant for chargeCodeMissing error.
      See Also:
    • RATING_DATE_MISSING

      public static final int RATING_DATE_MISSING
      Constant for ratingDateMissing error.
      See Also:
    • STATELESS_RATING_EVENT_MISSING

      public static final int STATELESS_RATING_EVENT_MISSING
      Constant for statelessRatingEventMissing error.
      See Also:
    • STATELESS_RATING_CONTEXT_MISSING

      public static final int STATELESS_RATING_CONTEXT_MISSING
      Constant for statelessRatingContextMissing error.
      See Also:
    • EFFECTIVE_DATE_MISSING

      public static final int EFFECTIVE_DATE_MISSING
      Constant for effectiveDateMissing error.
      See Also:
    • CHARGE_CODE_NOT_CORRESPONDING_TO_A_CHARGE

      public static final int CHARGE_CODE_NOT_CORRESPONDING_TO_A_CHARGE
      Constant for chargeCodeNotCorrespondingToACharge error.
      See Also:
    • 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:
    • RATING_DATE_BEFORE_EFFECTIVE_DATE

      public static final int RATING_DATE_BEFORE_EFFECTIVE_DATE
      Constant for ratingDateBeforeEffectiveDate error.
      See Also:
    • LAST_RATING_DATE_BEFORE_EFFECTIVE_DATE

      public static final int LAST_RATING_DATE_BEFORE_EFFECTIVE_DATE
      Constant for lastRatingDateBeforeEffectiveDate error.
      See Also:
    • RATING_DATE_BEFORE_LAST_RATING_DATE

      public static final int RATING_DATE_BEFORE_LAST_RATING_DATE
      Constant for ratingDateBeforeLastRatingDate error.
      See Also:
    • STATELESS_RATING_EVENT_INVALID_TYPE

      public static final int STATELESS_RATING_EVENT_INVALID_TYPE
      Constant for statelessRatingEventInvalidType error.
      See Also:
    • MISSING_CURRENCY

      public static final int MISSING_CURRENCY
      Constant for missingCurrency error.
      See Also:
    • UNKNOWN_CURRENCY

      public static final int UNKNOWN_CURRENCY
      Constant for unknownCurrency error.
      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

      public StatelessRateException(int reason, String message)
      Constructs an exception with the reason.
      Parameters:
      reason - The reason
      message - 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

      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(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(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 String getReasonString(int reason)