Package com.highdeal.bart.hci
Class RatingErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.bart.hci.RatingErrorException
- All Implemented Interfaces:
com.highdeal.hci.OperationResult,XMLMarshallable,Serializable
public class RatingErrorException
extends com.highdeal.hci.OperationFailureException
This class implements the method for the description of a rating error exception.
- See Also:
XML API for HCI
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>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRatingErrorException(int code, String name, String message) Builds an empty RatingErrorException. -
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.intgetCode()Gets the error codeGets the message.Return a reference for this exception.intGets the position of the CDR in error, when use the batch charge operation.booleanReturns true if this rating error is redoable, which means a CDR resubmission may not raise an error again.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetOperandReference(String reference) voidsetPosition(int position) Sets the position of the CDR in error, when use the batch charge operation.voidsetRedoable(boolean b) Sets this exception as redoable or notMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
NO_ERROR
public static final int NO_ERRORReserved for internal use.- See Also:
-
-
Constructor Details
-
RatingErrorException
Builds an empty RatingErrorException.
-
-
Method Details
-
getCode
public int getCode()Gets the error code- Returns:
- the error code.
-
setPosition
public void setPosition(int position) Sets the position of the CDR in error, when use the batch charge operation.- Parameters:
position- the position of the CDR in error
-
getPosition
public int getPosition()Gets the position of the CDR in error, when use the batch charge operation.- Returns:
- the position of the CDR in error.
-
getOperandReference
Return a reference for this exception. The reference depends of the context this is raised from. In case it is a redoable exceptionisRedoablethe reference is likely to point to the rating object on server side that as raised this exception.- Specified by:
getOperandReferencein interfacecom.highdeal.hci.OperationResult- Overrides:
getOperandReferencein classcom.highdeal.hci.OperationFailureException
-
setOperandReference
-
isRedoable
public boolean isRedoable()Returns true if this rating error is redoable, which means a CDR resubmission may not raise an error again. This kind of error is usually the consequence of a locking exception on the rating engine exception. -
setRedoable
public void setRedoable(boolean b) Sets this exception as redoable or not -
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
-