public class InvalidCreationErrorException extends OperationFailureErrorException
The connected SAP CC system manages several error categories that determine the error handling
that must be implemented in your client application.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidCreationError">
<xs:complexType>
<xs:sequence>
<xs:element ref="cause" minOccurs="1" maxOccurs="1"/>
<xs:element ref="causedBy" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="category" type="InvalidCreationCategoryType" use="required"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="InvalidCreationCategoryType">
<xs:restriction base="xs:string">
<xs:enumeration value="alreadyExists"/>
<xs:enumeration value="invalid"/>
<xs:enumeration value="prerequisiteMissing"/>
<xs:enumeration value="incompatibleConfiguration"/>
<xs:enumeration value="illegalState"/>
<xs:enumeration value="temporaryIllegalState"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Class and Description |
|---|---|
static class |
InvalidCreationErrorException.InvalidCreationCategory
This
enumeration lists all the categories of errors that may occur during the creation of a master data in the connected SAP CC system: already exists, invalid,
incompatible configuration, illegal state, or temporary illegal state. |
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The XML tag name of the XML representation: "invalidCreationError"
|
CAUSE_TAG_NAME, CAUSED_BY_TAG_NAME, MESSAGE_TAG_NAME| Constructor and Description |
|---|
InvalidCreationErrorException()
Builds an empty exception.
|
InvalidCreationErrorException(InvalidCreationErrorException.InvalidCreationCategory category,
IError error)
|
InvalidCreationErrorException(InvalidCreationErrorException.InvalidCreationCategory category,
IError error,
OperationFailureErrorException exception)
Builds an exception with an
error,
the Operation Failure which has triggered it and associated category. |
InvalidCreationErrorException(InvalidCreationErrorException.InvalidCreationCategory category,
IError error,
Throwable throwable)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
InvalidCreationErrorException.InvalidCreationCategory |
getCategory()
Gets the failure
category of this exception. |
String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
addChild, getError, getMessage, marshal, marshalChildren, marshalIError, setError, unmarshalIErrorgetOperandReferenceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final String TAG_NAME
public InvalidCreationErrorException()
public InvalidCreationErrorException(InvalidCreationErrorException.InvalidCreationCategory category, IError error)
category - The error categoryerror - The error which has triggered the exceptionpublic InvalidCreationErrorException(InvalidCreationErrorException.InvalidCreationCategory category, IError error, OperationFailureErrorException exception)
error,
the Operation Failure which has triggered it and associated category.category - The error categoryerror - The error of the exceptionexception - The exception which has triggered the current onepublic InvalidCreationErrorException(InvalidCreationErrorException.InvalidCreationCategory category, IError error, Throwable throwable)
category - The error categoryerror - The error of the exceptionthrowable - The throwable which has triggered the current onepublic InvalidCreationErrorException.InvalidCreationCategory getCategory()
category of this exception.public void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic String getTagName()
OperationFailureErrorExceptiongetTagName in class OperationFailureErrorExceptionpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes into