public class RatingErrorException
extends com.highdeal.hci.OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="ratingFault">
<xs:complexType>
<xs:attribute name="code" type="xs:string"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_ERROR
Reserved for internal use.
|
| Constructor and Description |
|---|
RatingErrorException(int code,
java.lang.String name,
java.lang.String message)
Builds an empty RatingErrorException.
|
| 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. |
int |
getCode()
Gets the error code
|
java.lang.String |
getMessage()
Gets the message.
|
java.lang.String |
getOperandReference()
Return a reference for this exception.
|
int |
getPosition()
Gets the position of the CDR in error, when use the batch charge operation.
|
boolean |
isRedoable()
Returns true if this rating error is redoable, which means a CDR
resubmission may not raise an error again.
|
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 |
setOperandReference(java.lang.String reference) |
void |
setPosition(int position)
Sets the position of the CDR in error, when use the batch charge operation.
|
void |
setRedoable(boolean b)
Sets this exception as redoable or not
|
public static final int NO_ERROR
public RatingErrorException(int code,
java.lang.String name,
java.lang.String message)
public int getCode()
public void setPosition(int position)
position - the position of the CDR in errorpublic int getPosition()
public java.lang.String getOperandReference()
isRedoable the reference is likely to point to the
rating object on server side that as raised this exception.getOperandReference in interface com.highdeal.hci.OperationResultgetOperandReference in class com.highdeal.hci.OperationFailureExceptionpublic void setOperandReference(java.lang.String reference)
public boolean isRedoable()
public void setRedoable(boolean b)
public 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