|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.StartRateException
public class StartRateException
Exception for the StartRateOp operation fails during session-based charging.
Such service operation request may fail for several reasons:
DUPLICATE_SESSIONINVALID_DEFAULT_RESOLUTIONINVALID_RESULT_TYPEINVALID_SESSION_IDINVALID_TTLNOT_ENOUGH_SPACENote
Refer to the Field Detail section for more information about a particular code and to determine the appropriate error handling in your client application.
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 |
|---|
public static final int INVALID_SESSION_ID
public static final int INVALID_TTL
public static final int INVALID_DEFAULT_RESOLUTION
public static final int INVALID_RESULT_TYPE
public static final int DUPLICATE_SESSION
public static final int NOT_ENOUGH_SPACE
| Constructor Detail |
|---|
public StartRateException()
public StartRateException(int reason,
java.lang.String message)
reason - The reason codemessage - The detailed message| Method Detail |
|---|
public java.lang.String getName()
public void setReason(int reason)
DUPLICATE_SESSIONINVALID_DEFAULT_RESOLUTIONINVALID_RESULT_TYPEINVALID_SESSION_IDINVALID_TTLNOT_ENOUGH_SPACE
reason - The reason to set uppublic int getReason()
DUPLICATE_SESSIONINVALID_DEFAULT_RESOLUTIONINVALID_RESULT_TYPEINVALID_SESSION_IDINVALID_TTLNOT_ENOUGH_SPACE
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setAttributes(XMLAttributes atts)
XMLMarshallable
atts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
cData - The character data to be added
public void addChild(java.lang.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 marshal(XMLOutputter output)
XMLMarshallable
output - The XML output to marshal the object intopublic java.lang.String toString()
toString in class java.lang.Throwable
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||