public class InvalidImportException extends OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidImportFault">
<xs:complexType>
<xs:attribute name="message" type="xs:string"/>
<xs:attribute name="reason" type="ImportExceptionReason"
use="required"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="ImportExceptionReason">
<xs:restriction base="xs:string">
<xs:enumeration value="invalid"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
INVALID
0: Constant for an invalid exception reason
|
| Constructor and Description |
|---|
InvalidImportException()
Constructs an empty exception.
|
InvalidImportException(int reason,
java.lang.String message)
Constructs an exception with the reason of the exception and the specified detail message.
|
| 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. |
java.lang.String |
getMessage()
Returns the message of the exception.
|
java.lang.String |
getOperandReference()
Gets the code or the reference (if no code exists) that identifies the operand of the operation request;
If the operation is not auditable, the operand reference is
null. |
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.
|
public static final int INVALID
public InvalidImportException()
public InvalidImportException(int reason,
java.lang.String message)
reason - The reason of the invalid importmessage - The message for this exceptionpublic int getReason()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic 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 marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic java.lang.String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultgetOperandReference in class OperationFailureException