Package org.apache.uima.util
Class InvalidXMLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.uima.InternationalizedException
org.apache.uima.UIMAException
org.apache.uima.util.InvalidXMLException
- All Implemented Interfaces:
Serializable
Thrown by the
XMLParser
to indicate that an XML document is invalid or does not specify a
valid object of the desired class.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Message key for a standard UIMA exception message: Cycle found in imports.static final String
Message key for a standard UIMA exception message: "Element type {0} cannot be duplicated within element type {1}."static final String
Message key for a standard UIMA exception message: "Required element type {0} not found within element type {1}."static final String
Message key for a standard UIMA exception message: The element "fsIndexes" cannot occur outside the containing element "fsIndexCollection"static final String
Message key for a standard UIMA exception message: An import could not be resolved.static final String
Message key for a standard UIMA exception message: Import failed.static final String
Message key for a standard UIMA exception message: Invalid import declaration.static final String
Message key for a standard UIMA exception message: "The XML document attempted to include an external file "{0}", which was not found."static final String
Message key for a standard UIMA exception message: "An object of class {0} was requested, but the XML input contained an object of class {1}."static final String
Message key for a standard UIMA exception message: This is not a valid CPE descriptor.static final String
Message key for a standard UIMA exception message: "Invalid descriptor file {0}."static final String
Message key for a standard UIMA exception message: "The text "{0}" is not valid content for the element "{1}"."static final String
Message key for a standard UIMA exception message: "Expected an element of type {0}, but found an element of type {1}."static final String
Message key for a standard UIMA exception message: Malformed URL {0} in import declaration.static final String
Message key for a standard UIMA exception message: "Required attribute {0} not found within element type {1}."private static final long
static final String
Message key for a standard UIMA exception message: "The XML parser encountered an unknown element type: {0}."Fields inherited from class org.apache.uima.UIMAException
STANDARD_MESSAGE_CATALOG
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new exception with a null message.InvalidXMLException
(String aMessageKey, Object[] aArguments) Creates a new exception with a message from theUIMAException.STANDARD_MESSAGE_CATALOG
.InvalidXMLException
(String aMessageKey, Object[] aArguments, Throwable aCause) Creates a new exception with the specified cause and a message from theUIMAException.STANDARD_MESSAGE_CATALOG
.InvalidXMLException
(String aResourceBundleName, String aMessageKey, Object[] aArguments) Creates a new exception with a the specified message.InvalidXMLException
(String aResourceBundleName, String aMessageKey, Object[] aArguments, Throwable aCause) Creates a new exception with the specified message and cause.InvalidXMLException
(Throwable aCause) Creates a new exception with the specified cause and a null message. -
Method Summary
Methods inherited from class org.apache.uima.InternationalizedException
getArguments, getCause, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getResourceBundleName, hasMessageKey, initCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_DESCRIPTOR_FILE
Message key for a standard UIMA exception message: "Invalid descriptor file {0}."- See Also:
-
UNKNOWN_ELEMENT
Message key for a standard UIMA exception message: "The XML parser encountered an unknown element type: {0}."- See Also:
-
INVALID_CLASS
Message key for a standard UIMA exception message: "An object of class {0} was requested, but the XML input contained an object of class {1}."- See Also:
-
INVALID_ELEMENT_TYPE
Message key for a standard UIMA exception message: "Expected an element of type {0}, but found an element of type {1}."- See Also:
-
ELEMENT_NOT_FOUND
Message key for a standard UIMA exception message: "Required element type {0} not found within element type {1}."- See Also:
-
REQUIRED_ATTRIBUTE_MISSING
Message key for a standard UIMA exception message: "Required attribute {0} not found within element type {1}."- See Also:
-
INCLUDE_FILE_NOT_FOUND
Message key for a standard UIMA exception message: "The XML document attempted to include an external file "{0}", which was not found."- See Also:
-
INVALID_ELEMENT_TEXT
Message key for a standard UIMA exception message: "The text "{0}" is not valid content for the element "{1}"."- See Also:
-
MALFORMED_IMPORT_URL
Message key for a standard UIMA exception message: Malformed URL {0} in import declaration.- See Also:
-
IMPORT_BY_NAME_TARGET_NOT_FOUND
Message key for a standard UIMA exception message: An import could not be resolved. No .xml file with name "{0}" was found in the class path or data path.- See Also:
-
IMPORT_FAILED_COULD_NOT_READ_FROM_URL
Message key for a standard UIMA exception message: Import failed. Could not read from URL {0}.- See Also:
-
IMPORT_MUST_HAVE_NAME_XOR_LOCATION
Message key for a standard UIMA exception message: Invalid import declaration. Import declarations must have a "name" or a "location" attribute, but not both.- See Also:
-
INVALID_CPE_DESCRIPTOR
Message key for a standard UIMA exception message: This is not a valid CPE descriptor.- See Also:
-
CIRCULAR_AE_IMPORT
Message key for a standard UIMA exception message: Cycle found in imports. The descriptor for Aggregate Analysis Engine "{0}" has imported itself as one of its delegate descriptors (perhaps indirectly through another intermediate Analysis Engine descriptor).- See Also:
-
FS_INDEXES_OUTSIDE_FS_INDEX_COLLECTION
Message key for a standard UIMA exception message: The element "fsIndexes" cannot occur outside the containing element "fsIndexCollection"- See Also:
-
DUPLICATE_ELEMENT_FOUND
Message key for a standard UIMA exception message: "Element type {0} cannot be duplicated within element type {1}."- See Also:
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
InvalidXMLException
public InvalidXMLException()Creates a new exception with a null message. -
InvalidXMLException
Creates a new exception with the specified cause and a null message.- Parameters:
aCause
- the original exception that caused this exception to be thrown, if any
-
InvalidXMLException
Creates a new exception with a the specified message.- Parameters:
aResourceBundleName
- the base name of the resource bundle in which the message for this exception is located.aMessageKey
- an identifier that maps to the message for this exception. The message may contain placeholders for arguments as defined by theMessageFormat
class.aArguments
- The arguments to the message.null
may be used if the message has no arguments.
-
InvalidXMLException
public InvalidXMLException(String aResourceBundleName, String aMessageKey, Object[] aArguments, Throwable aCause) Creates a new exception with the specified message and cause.- Parameters:
aResourceBundleName
- the base name of the resource bundle in which the message for this exception is located.aMessageKey
- an identifier that maps to the message for this exception. The message may contain placeholders for arguments as defined by theMessageFormat
class.aArguments
- The arguments to the message.null
may be used if the message has no arguments.aCause
- the original exception that caused this exception to be thrown, if any
-
InvalidXMLException
Creates a new exception with a message from theUIMAException.STANDARD_MESSAGE_CATALOG
.- Parameters:
aMessageKey
- an identifier that maps to the message for this exception. The message may contain placeholders for arguments as defined by theMessageFormat
class.aArguments
- The arguments to the message.null
may be used if the message has no arguments.
-
InvalidXMLException
Creates a new exception with the specified cause and a message from theUIMAException.STANDARD_MESSAGE_CATALOG
.- Parameters:
aMessageKey
- an identifier that maps to the message for this exception. The message may contain placeholders for arguments as defined by theMessageFormat
class.aArguments
- The arguments to the message.null
may be used if the message has no arguments.aCause
- the original exception that caused this exception to be thrown, if any
-