public class IncompatibleOperationException extends OperationFailureException
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.
ClearPrepaidAccountOp,
Serialized FormThe 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>
| Constructor and Description |
|---|
IncompatibleOperationException()
Constructs an empty exception.
|
IncompatibleOperationException(String message) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getMessage()
Returns a comprehensive text message for this 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.
|
getOperandReferenceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic IncompatibleOperationException()
public IncompatibleOperationException(String message)
public void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(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 marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic String getMessage()
getMessage in class Throwable