public class InvalidBulkModificationException extends OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidBulkModificationFault">
<xs:complexType>
<xs:attribute name="reason" type="InvalidBulkModificationReasonType"/>
<xs:attribute name="attribute" type="xs:string"/>
<xs:attribute name="operator" type="xs:string"/>
<xs:attribute name="operand" type="xs:string"/>
<xs:attribute name="itemID" type="xs:string"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="InvalidBulkModificationReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidAttributeName"/>
<xs:enumeration value="invalidOperator"/>
<xs:enumeration value="incompatibleOperand"/>
<xs:enumeration value="noAdditionalInfo"/>
<xs:enumeration value="databaseFailure"/>
<xs:enumeration value="malformedModel"/>
<xs:enumeration value="invalidSpecificModification"/>
<xs:enumeration value="inheritanceBroadcastingFailure"/>
<xs:enumeration value="unsupportedCrossModificationField"/>
<xs:enumeration value="unexpectedModification"/>
<xs:enumeration value="ambiguousModification"/>
<xs:enumeration value="unresolvedPreRating"/>
<xs:enumeration value="specifiedInMessage"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
AMBIGUOUS_MODIFICATION
11: Ambiguous modification for the used API.
|
static int |
DATABASE_FAILURE
4: Database failure exception.
|
static int |
INCOMPATIBLE_OPERAND
2: The operand type is not compatible with attribute type.
|
static int |
INHERITANCE_BROADCASTING_FAILURE
8: Inheritance broadcasting failure exception.
|
static int |
INTERNAL_ERROR
-1: Other internal reasons.
|
static int |
INVALID_ATTRIBUTE_NAME
0: Constant for the modification attribute description name is invalid.
|
static int |
INVALID_OPERATOR
1: Modification operator is not valid according to attribute type.
|
static int |
INVALID_SPECIFIC_FORMULA
6: Invalid specific formula
|
static int |
MALFORMED_MODEL
7: Malformed modification model.
|
static int |
SCOPE_HAS_NO_ADDITIONAL_INFO
3: The scope does not support additional info framwork.
|
static int |
SPECIFIED_IN_MESSAGE |
static int |
UNEXPECTED_MODIFICATION
10: Unexpected modification for the used API.
|
static int |
UNRESOLVED_PRE_RATING |
static int |
UNSUPPORTED_CROSS_FIELD
9: Unsupported cross modification field.
|
| Constructor and Description |
|---|
InvalidBulkModificationException()
Builds an InvalidBulkModificationException.
|
InvalidBulkModificationException(int reason)
Builds an InvalidBulkModificationException.
|
InvalidBulkModificationException(int reason,
java.lang.String attribute)
Builds an InvalidBulkModificationException.
|
InvalidBulkModificationException(int reason,
java.lang.String attribute,
java.lang.Object operand,
int operator,
java.lang.Exception exc,
java.lang.String itemID)
Builds an InvalidBulkModificationException.
|
InvalidBulkModificationException(java.lang.String message,
int operator)
Builds an InvalidBulkModificationException.
|
| 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 |
getAttribute()
Returns the faulty attribute description name.
|
java.lang.Object |
getItemID()
Returns the identifier of the item which has failed during database modification.
|
java.lang.String |
getMessage()
Gets the message.
|
java.lang.String |
getOperand()
Returns the faulty operand.
|
int |
getOperator()
Returns the faulty operator.
|
int |
getReason()
Returns the numeric reason code 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.
|
java.lang.String |
toString()
Returns the reason of the exception in human-readable format.
|
getOperandReferencepublic static final int INVALID_ATTRIBUTE_NAME
public static final int INVALID_OPERATOR
public static final int INCOMPATIBLE_OPERAND
public static final int SCOPE_HAS_NO_ADDITIONAL_INFO
public static final int DATABASE_FAILURE
public static final int INVALID_SPECIFIC_FORMULA
public static final int MALFORMED_MODEL
public static final int INHERITANCE_BROADCASTING_FAILURE
public static final int UNSUPPORTED_CROSS_FIELD
public static final int UNEXPECTED_MODIFICATION
public static final int AMBIGUOUS_MODIFICATION
public static final int UNRESOLVED_PRE_RATING
public static final int INTERNAL_ERROR
public static final int SPECIFIED_IN_MESSAGE
public InvalidBulkModificationException()
public InvalidBulkModificationException(java.lang.String message,
int operator)
message - The message of the exceptionoperator - The operator of the exceptionpublic InvalidBulkModificationException(int reason)
reason - The reason of the exceptionpublic InvalidBulkModificationException(int reason,
java.lang.String attribute)
reason - The reason of the exceptionattribute - The attribute of the bad searchpublic InvalidBulkModificationException(int reason,
java.lang.String attribute,
java.lang.Object operand,
int operator,
java.lang.Exception exc,
java.lang.String itemID)
reason - The reason of the exceptionattribute - The attribute of the bad searchpublic 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 int getReason()
public java.lang.String getAttribute()
public java.lang.Object getItemID()
public java.lang.String getOperand()
public int getOperator()
public java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwable