public class ExportableItemMappingException extends OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="ExportableItemMappingFault">
<xs:complexType>
<xs:attribute name="reason" type="exceptionReason"/>
<xs:attribute name="message" type="xs:string"/>
<xs:attribute name="code" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="exceptionReason">
<xs:restriction base="xs:string">
<xs:enumeration value="connection_failure"/>
<xs:enumeration value="does_not_exist"/>
<xs:enumeration value="invalid"/>
<xs:enumeration value="already_exist"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
ALREADY_EXIST |
static int |
CONNECTION_FAILURE |
static int |
DOES_NOT_EXIST |
static java.lang.String |
EXCEPTION_NAME |
static int |
INVALID |
| Constructor and Description |
|---|
ExportableItemMappingException() |
ExportableItemMappingException(int reason,
java.lang.String message) |
ExportableItemMappingException(int reason,
java.lang.String message,
java.lang.String code) |
ExportableItemMappingException(int reason,
java.lang.String message,
java.lang.Throwable throwable) |
ExportableItemMappingException(int reason,
java.lang.Throwable throwable) |
| 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 |
getCode() |
java.lang.String |
getMessage() |
int |
getReason() |
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 |
setCode(java.lang.String code) |
void |
setMessage(java.lang.String message) |
void |
setReason(int reason) |
getOperandReferencepublic static final java.lang.String EXCEPTION_NAME
public static final int CONNECTION_FAILURE
public static final int DOES_NOT_EXIST
public static final int INVALID
public static final int ALREADY_EXIST
public ExportableItemMappingException()
public ExportableItemMappingException(int reason,
java.lang.String message,
java.lang.Throwable throwable)
public ExportableItemMappingException(int reason,
java.lang.Throwable throwable)
public ExportableItemMappingException(int reason,
java.lang.String message)
public ExportableItemMappingException(int reason,
java.lang.String message,
java.lang.String code)
public int getReason()
public void setReason(int reason)
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setMessage(java.lang.String message)
public java.lang.String getCode()
public void setCode(java.lang.String code)
public 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 setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into