public class InvalidCDRException
extends com.highdeal.hci.OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidCDRFault">
<xs:complexType>
<xs:sequence>
<xs:element ref="cdr" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="reason" type="InvalidCDRReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="InvalidCDRReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="internalError"/>
<xs:enumeration value="invalidCDR"/>
<xs:enumeration value="cdrDoesNotExist"/>
<xs:enumeration value="duplicateCDR"/>
<xs:enumeration value="cdrIsNull"/>
<xs:enumeration value="chargeableItemIsNull"/>
<xs:enumeration value="consumptionDateIsNull"/>
<xs:enumeration value="userIDIsNull"/>
<xs:enumeration value="serviceIDIsNull"/>
<xs:enumeration value="subscriptionIDisNull"/>
<xs:enumeration value="invalidMagicNumber"/>
<xs:enumeration value="alreadyRated"/>
<xs:enumeration value="ignoredCDR"/>
<xs:enumeration value="invalidCreationMode"/>
<xs:enumeration value="invalidModficationMode"/>
<xs:enumeration value="invalidDeletionMode"/>
<xs:enumeration value="invalidRatingMode"/>
<xs:enumeration value="cannotRateInvalidItem"/>
<xs:enumeration value="beingRated"/>
<xs:enumeration value="malformedProperty"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
CANNOT_RATE_INVALID_ITEM
The CDR cannot be rated because of the invalid item.
|
static int |
CDR_ALREADY_RATED
The CDR is already rated.
|
static int |
CDR_BEING_RATED
The CDR cannot be modified because it is being rated.
|
static int |
CDR_DOES_NOT_EXIST
The given CDR Id doesn't refer to an existing CDR.
|
static int |
CDR_IGNORED
The CDR is ignored.
|
static int |
DUPLICATE_CDR
The CDR is a duplicate one.
|
static int |
INTERNAL_ERROR
Reserved for internal use.
|
static int |
INVALID_CDR
The CDR is not valid.
|
static int |
INVALID_CREATION_MODE
The creation mode is invalid.
|
static int |
INVALID_DELETION_MODE
The deletion mode is invalid.
|
static int |
INVALID_MAGIC_NUMBER
The magic number is invalid.
|
static int |
INVALID_MODIFICATION_MODE
The modification mode is invalid.
|
static int |
INVALID_RATING_MODE
The rating mode is invalid.
|
static int |
MALFORMED_PROPERTY
One or more Properties of the CDR are invalid.
|
static int |
NULL_CDR
The given CDR is null.
|
static int |
NULL_CHARGEABLE_ITEM
The given chargeable item is null.
|
static int |
NULL_CONSUMPTION_DATE
The consumption date of this CDR is null.
|
static int |
NULL_SERVICE_ID
The service id of this CDR is null.
|
static int |
NULL_SUBSCRIPTION_ID
The subscription id of this CDR is null.
|
static int |
NULL_USER_ID
The user id of this CDR is null.
|
| Constructor and Description |
|---|
InvalidCDRException()
Builds an empty InvalidCDRException.
|
InvalidCDRException(int reason)
Builds an InvalidCDRException.
|
InvalidCDRException(int reason,
CDRModel cdr)
Builds an InvalidCDRException.
|
InvalidCDRException(int reason,
java.lang.String operandReference)
Builds an InvalidCDRException.
|
InvalidCDRException(int reason,
java.lang.String operandReference,
CDRModel cdr)
Builds an InvalidCDRException.
|
| 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. |
CDRModel |
getCdr()
Gets the cdr.
|
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.
|
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 INVALID_CDR
public static final int CDR_DOES_NOT_EXIST
public static final int DUPLICATE_CDR
public static final int NULL_CDR
public static final int NULL_CHARGEABLE_ITEM
public static final int NULL_CONSUMPTION_DATE
public static final int NULL_USER_ID
public static final int NULL_SERVICE_ID
public static final int NULL_SUBSCRIPTION_ID
public static final int INVALID_MAGIC_NUMBER
public static final int CDR_ALREADY_RATED
public static final int CDR_IGNORED
public static final int INVALID_MODIFICATION_MODE
public static final int INVALID_DELETION_MODE
public static final int INVALID_RATING_MODE
public static final int CANNOT_RATE_INVALID_ITEM
public static final int CDR_BEING_RATED
public static final int INVALID_CREATION_MODE
public static final int MALFORMED_PROPERTY
public InvalidCDRException()
public InvalidCDRException(int reason)
reason - the reason of the exception.public InvalidCDRException(int reason,
CDRModel cdr)
reason - the reason of the exception.cdr - the cdr leading to the exception.public InvalidCDRException(int reason,
java.lang.String operandReference)
reason - the reason of the exception.operandReference - an operand reference such as faultly CDR OID.public InvalidCDRException(int reason,
java.lang.String operandReference,
CDRModel cdr)
reason - the reason of the exception.operandReference - an operand reference such as faultly CDR OID.cdr - the cdr leading to the exception.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 into