Package com.highdeal.hci
Class InvalidDeletionErrorException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.hci.OperationFailureErrorException
com.highdeal.hci.InvalidDeletionErrorException
- All Implemented Interfaces:
IErrorException,IXMLMarshallable,OperationResult,XMLMarshallable,Serializable
Generic exception thrown when there is an attempt to delete something
that is not valid; It specifies the exception category (does not exist, invalid, prerequisite missing, illegal state,
or temporary illegal state), the direct cause of the exception, and the optional 'caused by' information that represent an exception stack.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidDeletionError">
<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="InvalidDeletionCategoryType" use="required"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="InvalidDeletionCategoryType">
<xs:restriction base="xs:string">
<xs:enumeration value="doesNotExist"/>
<xs:enumeration value="invalid"/>
<xs:enumeration value="prerequisiteMissing"/>
<xs:enumeration value="illegalState"/>
<xs:enumeration value="temporaryIllegalState"/>
</xs:restriction>
</xs:simpleType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThisenumerationlists all the categories of errors that may occur during the deletion of a master data. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe XML tag name of this error: "invalidDeletionError"Fields inherited from class com.highdeal.hci.OperationFailureErrorException
CAUSE_TAG_NAME, CAUSED_BY_TAG_NAME, MESSAGE_TAG_NAME -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty exception.InvalidDeletionErrorException(InvalidDeletionErrorException.InvalidDeletionCategory category, IError error) Builds an exception with the error which has triggered it and associatedcategory.InvalidDeletionErrorException(InvalidDeletionErrorException.InvalidDeletionCategory category, IError error, OperationFailureErrorException exception) Builds an exception with an error, theOperation Failurewhich has triggered it and associatedcategory.InvalidDeletionErrorException(InvalidDeletionErrorException.InvalidDeletionCategory category, IError error, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.Gets the failurecategoryof this exception.Gets the XML tag name of the HCI model.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.Methods inherited from class com.highdeal.hci.OperationFailureErrorException
addChild, getError, getMessage, marshal, marshalChildren, marshalIError, setError, unmarshalIErrorMethods 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
-
TAG_NAME
The XML tag name of this error: "invalidDeletionError"- See Also:
-
-
Constructor Details
-
InvalidDeletionErrorException
public InvalidDeletionErrorException()Builds an empty exception. -
InvalidDeletionErrorException
public InvalidDeletionErrorException(InvalidDeletionErrorException.InvalidDeletionCategory category, IError error) Builds an exception with the error which has triggered it and associatedcategory.- Parameters:
category- The exception categoryerror- The error which has triggered the exception; This is the cause of the exception.
-
InvalidDeletionErrorException
public InvalidDeletionErrorException(InvalidDeletionErrorException.InvalidDeletionCategory category, IError error, OperationFailureErrorException exception) Builds an exception with an error, theOperation Failurewhich has triggered it and associatedcategory.- Parameters:
category- The exception categoryerror- The cause error of the exceptionexception- The exception which has triggered the current one
-
InvalidDeletionErrorException
public InvalidDeletionErrorException(InvalidDeletionErrorException.InvalidDeletionCategory category, IError error, Throwable throwable) - Parameters:
category- The exception categoryerror- The cause error of the exceptionthrowable- The throwable which has triggered the current one
-
-
Method Details
-
getCategory
Gets the failurecategoryof this exception.- Returns:
- The failure category of this exception
-
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
-
getTagName
Description copied from class:OperationFailureErrorExceptionGets the XML tag name of the HCI model.- Specified by:
getTagNamein classOperationFailureErrorException- Returns:
- The XML tag name
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Parameters:
output- TheXML outputto marshal the object attributes into
-