Package com.highdeal.bart.hci
Class InvalidRatingSessionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.bart.hci.InvalidRatingSessionException
- All Implemented Interfaces:
com.highdeal.hci.OperationResult,XMLMarshallable,Serializable
public class InvalidRatingSessionException
extends com.highdeal.hci.OperationFailureException
This class implements the methods for the description of an invalid rating session exception.
- See Also:
XML API for HCI
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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intReserved for internal use.static final intThe rating mode is invalid.static final intThe batch rating group id is null.static final intThe max consumption date is null.static final intThe given rating session id is null.static final intThe rating session is already ended.static final intThe rating session is already running.static final intThe rating session doesn't exist.static final intThe rating session is not running.static final intThere is no rating session to stop.static final intIt is not possible a new rating session because there too many rating session running. -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty InvalidRatingException.InvalidRatingSessionException(int reason) Builds an InvalidRatingException.InvalidRatingSessionException(int reason, String operandReference) Builds an InvalidAcquisitionException. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the message.intReturns the reason of the exception.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.static StringreasonToString(int r) voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.toString()Returns the reason of the exception in readable format.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
INTERNAL_ERROR
public static final int INTERNAL_ERRORReserved for internal use.- See Also:
-
RATING_SESSION_DOES_NOT_EXIST
public static final int RATING_SESSION_DOES_NOT_EXISTThe rating session doesn't exist.- See Also:
-
NULL_RATING_SESSION
public static final int NULL_RATING_SESSIONThe given rating session id is null.- See Also:
-
RATING_SESSION_ALREADY_ENDED
public static final int RATING_SESSION_ALREADY_ENDEDThe rating session is already ended.- See Also:
-
INVALID_RATING_MODE
public static final int INVALID_RATING_MODEThe rating mode is invalid.- See Also:
-
NULL_BATCH_RATING_GROUP_ID
public static final int NULL_BATCH_RATING_GROUP_IDThe batch rating group id is null.- See Also:
-
NULL_MAX_CONSUMPTION_DATE
public static final int NULL_MAX_CONSUMPTION_DATEThe max consumption date is null.- See Also:
-
RATING_SESSION_ALREADY_RUNNING
public static final int RATING_SESSION_ALREADY_RUNNINGThe rating session is already running.- See Also:
-
TOO_MANY_RUNNING_SESSIONS
public static final int TOO_MANY_RUNNING_SESSIONSIt is not possible a new rating session because there too many rating session running.- See Also:
-
STOPPING_RUNNING_SESSIONS
public static final int STOPPING_RUNNING_SESSIONSThere is no rating session to stop.- See Also:
-
RATING_SESSION_NOT_RUNNING
public static final int RATING_SESSION_NOT_RUNNINGThe rating session is not running.- See Also:
-
-
Constructor Details
-
InvalidRatingSessionException
public InvalidRatingSessionException()Builds an empty InvalidRatingException. -
InvalidRatingSessionException
public InvalidRatingSessionException(int reason) Builds an InvalidRatingException.- Parameters:
reason- the reason of the exception.
-
InvalidRatingSessionException
Builds an InvalidAcquisitionException.- Parameters:
reason- the reason of the exception.operandReference- an operand reference such as faultly CDR OID.
-
-
Method Details
-
getReason
public int getReason()Returns the reason of the exception.- Returns:
- the reason of the exception.
-
getOperandReference
- Specified by:
getOperandReferencein interfacecom.highdeal.hci.OperationResult- Overrides:
getOperandReferencein classcom.highdeal.hci.OperationFailureException
-
toString
Returns the reason of the exception in readable format. -
getMessage
Gets the message.- Overrides:
getMessagein classThrowable- Returns:
- the message.
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Parameters:
output- TheXML outputto marshal the object into
-
reasonToString
-