com.highdeal.pnr.hci
Class StartRateException

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.StartRateException
All Implemented Interfaces:
OperationResult, XMLMarshallable, java.io.Serializable

public class StartRateException
extends OperationFailureException

Exception for the StartRateOp operation fails during session-based charging.

Such service operation request may fail for several reasons:

Note

Refer to the Field Detail section for more information about a particular code and to determine the appropriate error handling 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="startRateFault">
   <xs:complexType>
     <xs:attribute name="reason" type="StartRateFaultType"/>
     <xs:attribute name="message" type="xs:string"/>
   </xs:complexType>
 </xs:element>
<xs:simpleType name="StartRateFaultType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="invalidSessionID"/>
     <xs:enumeration value="invalidTTL"/>
     <xs:enumeration value="invalidDefaultResolution"/>
     <xs:enumeration value="invalidResultType"/>
     <xs:enumeration value="duplicateSession"/>
     <xs:enumeration value="notEnoughSpace"/>
    </xs:restriction>
 </xs:simpleType>


Field Summary
static int DUPLICATE_SESSION
          The session ID is already used.
static int INVALID_DEFAULT_RESOLUTION
          The resolution is not valid.
static int INVALID_RESULT_TYPE
          The result type is not a valid one.
static int INVALID_SESSION_ID
          0: The session is not valid or is missing for example.
static int INVALID_TTL
          1: The value of the time to live is not set or a negative one.
static int NOT_ENOUGH_SPACE
          5: There is not enough space on to store a session.
 
Constructor Summary
StartRateException()
          Constructs an empty start exception.
StartRateException(int reason, java.lang.String message)
          Constructs an start exception with a reason and a message.
 
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.
 java.lang.String getMessage()
           
 java.lang.String getName()
           
 int getReason()
          Gets the reason (numeric code).
 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.
 java.lang.String toString()
           
 
Methods inherited from class com.highdeal.hci.OperationFailureException
getOperandReference
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_SESSION_ID

public static final int INVALID_SESSION_ID
0: The session is not valid or is missing for example.

See Also:
Constant Field Values

INVALID_TTL

public static final int INVALID_TTL
1: The value of the time to live is not set or a negative one.

See Also:
Constant Field Values

INVALID_DEFAULT_RESOLUTION

public static final int INVALID_DEFAULT_RESOLUTION
The resolution is not valid.

See Also:
Constant Field Values

INVALID_RESULT_TYPE

public static final int INVALID_RESULT_TYPE
The result type is not a valid one.

See Also:
Constant Field Values

DUPLICATE_SESSION

public static final int DUPLICATE_SESSION
The session ID is already used.

See Also:
Constant Field Values

NOT_ENOUGH_SPACE

public static final int NOT_ENOUGH_SPACE
5: There is not enough space on to store a session.

See Also:
Constant Field Values
Constructor Detail

StartRateException

public StartRateException()
Constructs an empty start exception.


StartRateException

public StartRateException(int reason,
                          java.lang.String message)
Constructs an start exception with a reason and a message.

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

getName

public java.lang.String getName()

setReason

public void setReason(int reason)
Sets the reason.

Parameters:
reason - The reason to set up

getReason

public int getReason()
Gets the reason (numeric code).

Returns:
The reason code

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

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

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

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

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

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