public class InvalidRatingSessionException
extends com.highdeal.hci.OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidRatingSessionFault">
<xs:complexType>
<xs:attribute name="reason" type="InvalidRatingSessionReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="InvalidRatingSessionReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="internalError"/>
<xs:enumeration value="sessionDoesNotExist"/>
<xs:enumeration value="sessionIsNull"/>
<xs:enumeration value="sessionIsAlreadyEnded"/>
<xs:enumeration value="invalidRatingMode"/>
<xs:enumeration value="nullBatchRatingGroupId"/>
<xs:enumeration value="nullMaxConsumptionDate"/>
<xs:enumeration value="sessionAlreadyRunning"/>
<xs:enumeration value="tooManyRunningSessions"/>
<xs:enumeration value="stoppingRunningSessions"/>
<xs:enumeration value="notRunning"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
INTERNAL_ERROR
Reserved for internal use.
|
static int |
INVALID_RATING_MODE
The rating mode is invalid.
|
static int |
NULL_BATCH_RATING_GROUP_ID
The batch rating group id is null.
|
static int |
NULL_MAX_CONSUMPTION_DATE
The max consumption date is null.
|
static int |
NULL_RATING_SESSION
The given rating session id is null.
|
static int |
RATING_SESSION_ALREADY_ENDED
The rating session is already ended.
|
static int |
RATING_SESSION_ALREADY_RUNNING
The rating session is already running.
|
static int |
RATING_SESSION_DOES_NOT_EXIST
The rating session doesn't exist.
|
static int |
RATING_SESSION_NOT_RUNNING
The rating session is not running.
|
static int |
STOPPING_RUNNING_SESSIONS
There is no rating session to stop.
|
static int |
TOO_MANY_RUNNING_SESSIONS
It is not possible a new rating session because there too many rating session running.
|
| Constructor and Description |
|---|
InvalidRatingSessionException()
Builds an empty InvalidRatingException.
|
InvalidRatingSessionException(int reason)
Builds an InvalidRatingException.
|
InvalidRatingSessionException(int reason,
java.lang.String operandReference)
Builds an InvalidAcquisitionException.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Gets the message.
|
java.lang.String |
getOperandReference() |
int |
getReason()
Returns the reason of the exception.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
static java.lang.String |
reasonToString(int r) |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
java.lang.String |
toString()
Returns the reason of the exception in readable format.
|
public static final int INTERNAL_ERROR
public static final int RATING_SESSION_DOES_NOT_EXIST
public static final int NULL_RATING_SESSION
public static final int RATING_SESSION_ALREADY_ENDED
public static final int INVALID_RATING_MODE
public static final int NULL_BATCH_RATING_GROUP_ID
public static final int NULL_MAX_CONSUMPTION_DATE
public static final int RATING_SESSION_ALREADY_RUNNING
public static final int TOO_MANY_RUNNING_SESSIONS
public static final int STOPPING_RUNNING_SESSIONS
public static final int RATING_SESSION_NOT_RUNNING
public InvalidRatingSessionException()
public InvalidRatingSessionException(int reason)
reason - the reason of the exception.public InvalidRatingSessionException(int reason,
java.lang.String operandReference)
reason - the reason of the exception.operandReference - an operand reference such as faultly CDR OID.public int getReason()
public java.lang.String getOperandReference()
getOperandReference in interface com.highdeal.hci.OperationResultgetOperandReference in class com.highdeal.hci.OperationFailureExceptionpublic java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic 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 addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic static java.lang.String reasonToString(int r)