Package com.highdeal.hci
Class IncompatibleOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.hci.IncompatibleOperationException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Generic exception thrown when the operation is invalid in the context.
Example
For example, in a same HCI envelope, the Clear Prepaid Account operation or/and
the Refill Prepaid Account operation cannot be performed with other
kind of operations rather than an incompatibleOperationFault
is returned.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="incompatibleOperationFault">
<xs:complexType>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty exception.IncompatibleOperationException(String message) -
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.Returns a comprehensive text message for this exception.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.Methods inherited from class com.highdeal.hci.OperationFailureException
getOperandReferenceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
EXCEPTION_NAME
The XML tag of the exception.- See Also:
-
-
Constructor Details
-
IncompatibleOperationException
public IncompatibleOperationException()Constructs an empty exception. -
IncompatibleOperationException
-
-
Method Details
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
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
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Parameters:
output- TheXML outputto marshal the object into
-
getMessage
Returns a comprehensive text message for this exception.- Overrides:
getMessagein classThrowable
-