public class InvalidSearchException extends OperationFailureException
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="invalidSearchFault">
<xs:complexType>
<xs:attribute name="reason" type="InvalidSearchReasonType"/>
<xs:attribute name="attribute" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="InvalidSearchReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidName"/>
<xs:enumeration value="invalidConstraint"/>
<xs:enumeration value="invalidConstraintType"/>
<xs:enumeration value="invalidTypeForConstraint"/>
<xs:enumeration value="noAdditionalInfo"/>
<xs:enumeration value="noCounter"/>
<xs:enumeration value="databaseFailure"/>
<xs:enumeration value="invalidSpecificFormula"/>
<xs:enumeration value="malformedModel"/>
<xs:enumeration value="unexpectedFilter"/>
<xs:enumeration value="unexpectedFormula"/>
<xs:enumeration value="mandatoryFormula"/>
<xs:enumeration value="forbiddenFormula"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
DATABASE_FAILURE
5: Database failure exception.
|
static int |
FORBIDDEN_FORMULA
12: The specific formula is forbidden for this search operation API.
|
static int |
INTERNAL_ERROR
-1: Other internal reasons.
|
static int |
INVALID_CONSTRAINT
1: The search attribute description constraint is invalid.
|
static int |
INVALID_NAME
0: The search attribute description name is invalid.
|
static int |
INVALID_SPECIFIC_FORMULA
6: Invalid specific formula.
|
static int |
INVALID_TYPE
2: Invalid type for search criteria.
|
static int |
INVALID_TYPE_FOR_CONSTRAINT
3: The type for the attribute description constraint is not valid.
|
static int |
MALFORMED_MODEL
8: Malformed filter model.
|
static int |
MANDATORY_FORMULA
11: The specific formula is mandatory for this search operation API.
|
static int |
SCOPE_HAS_NO_ADDITIONAL_INFO
4: The scope has no additional info to search in.
|
static int |
SCOPE_HAS_NO_COUNTER
7: The scope has no counter to search in.
|
static int |
UNEXPECTED_FILTER
9: Unexpected filter for the used search operation API.
|
static int |
UNEXPECTED_FORMULA
10: Unexpected specific formula for this search operation API.
|
| Constructor and Description |
|---|
InvalidSearchException()
Builds an InvalidSearchException.
|
InvalidSearchException(int reason)
Builds an InvalidSearchException.
|
InvalidSearchException(int reason,
java.lang.String attribute)
Builds an InvalidSearchException.
|
InvalidSearchException(int reason,
java.lang.String attribute,
java.lang.Exception exc)
Builds an InvalidSearchException.
|
| 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.String |
getMessage()
Gets the message.
|
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.
|
java.lang.String |
toString()
Returns the reason of the exception in readable format.
|
getOperandReferencepublic static final int INVALID_NAME
public static final int INVALID_CONSTRAINT
public static final int INVALID_TYPE
public static final int INVALID_TYPE_FOR_CONSTRAINT
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 SCOPE_HAS_NO_COUNTER
public static final int MALFORMED_MODEL
public static final int UNEXPECTED_FILTER
public static final int UNEXPECTED_FORMULA
public static final int MANDATORY_FORMULA
public static final int FORBIDDEN_FORMULA
public static final int INTERNAL_ERROR
public InvalidSearchException()
public InvalidSearchException(int reason)
reason - The reason of the exceptionpublic InvalidSearchException(int reason,
java.lang.String attribute)
reason - The reason of the exceptionattribute - The attribute of the bad searchpublic InvalidSearchException(int reason,
java.lang.String attribute,
java.lang.Exception exc)
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.String toString()
toString in class java.lang.Throwablepublic java.lang.String getMessage()
getMessage in class java.lang.Throwable