Package org.apache.uima
Class UIMA_IllegalArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.uima.UIMARuntimeException
org.apache.uima.UIMA_IllegalArgumentException
- All Implemented Interfaces:
Serializable
,I18nExceptionI
Thrown to indicate that a method has been passed an illegal or inappropriate argument.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Message key for a standard UIMA exception message: "Value "{0}" is not valid for argument "{1}" of method {2}."static final String
Message key for a standard UIMA exception message: "The value {0} does not match the data type of metadata attribute {1}."static final String
Message key for a standard UIMA exception message: "An attempt was made to register class {0} with the XML parser.Fields inherited from class org.apache.uima.UIMARuntimeException
CAS_RELEASE_NOT_ALLOWED_WHILE_WAITING_FOR_UIMA_AS, CAS_RELEASED_TO_WRONG_CAS_MANAGER, COPY_CAS_RANGE_TYPE_NAMES_NOT_EQUAL, DEFINE_CAS_POOL_CALLED_TWICE, ECORE_UNRESOLVED_PROXY, FEATURE_NOT_FOUND_DURING_CAS_COPY, ILLEGAL_ADDING_OF_NEW_META_INFO_AFTER_CAS_DEFINED, ILLEGAL_CAS_COPY_TO_SAME_CAS, ILLEGAL_FS_FEAT_UPDATE, INCOMPATIBLE_TAF_JNI_LIBRARY, INTERNAL_ERROR, NOT_SUPPORTED_NO_HEAP_IN_UIMA_V3, REQUESTED_TOO_MANY_CAS_INSTANCES, RESULT_SPEC_NULL, STANDARD_MESSAGE_CATALOG, TYPE_NOT_FOUND_DURING_CAS_COPY, UIMA_CONTEXT_NULL, UIMA_ECORE_NOT_FOUND, UNSUPPORTED_CAS_COPY_TO_OR_FROM_BASE_CAS, UNSUPPORTED_CAS_INTERFACE, VIEW_NOT_PART_OF_CAS
-
Constructor Summary
ConstructorDescriptionCreates a new exception with a null message.UIMA_IllegalArgumentException
(String aMessageKey, Object[] aArguments) Creates a new exception with a message from theUIMARuntimeException.STANDARD_MESSAGE_CATALOG
.UIMA_IllegalArgumentException
(String aMessageKey, Object[] aArguments, Throwable aCause) Creates a new exception with the specified cause and a message from theUIMARuntimeException.STANDARD_MESSAGE_CATALOG
.UIMA_IllegalArgumentException
(String aResourceBundleName, String aMessageKey, Object[] aArguments) Creates a new exception with a the specified message.UIMA_IllegalArgumentException
(String aResourceBundleName, String aMessageKey, Object[] aArguments, Throwable aCause) Creates a new exception with the specified message and cause.Creates a new exception with the specified cause and a null message. -
Method Summary
Methods inherited from class org.apache.uima.UIMARuntimeException
getArguments, getCause, getLocalizedMessage, getMessage, getMessageKey, getResourceBundleName, initCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.uima.I18nExceptionI
getLocalizedMessage, hasMessageKey
-
Field Details
-
ILLEGAL_ARGUMENT
Message key for a standard UIMA exception message: "Value "{0}" is not valid for argument "{1}" of method {2}."- See Also:
-
METADATA_ATTRIBUTE_TYPE_MISMATCH
Message key for a standard UIMA exception message: "The value {0} does not match the data type of metadata attribute {1}."- See Also:
-
MUST_IMPLEMENT_XMLIZABLE
Message key for a standard UIMA exception message: "An attempt was made to register class {0} with the XML parser. This class does not implement the XMLizable interface."- See Also:
-
-
Constructor Details
-
UIMA_IllegalArgumentException
public UIMA_IllegalArgumentException()Creates a new exception with a null message. -
UIMA_IllegalArgumentException
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
-
UIMA_IllegalArgumentException
public UIMA_IllegalArgumentException(String aResourceBundleName, String aMessageKey, Object[] aArguments) 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.
-
UIMA_IllegalArgumentException
public UIMA_IllegalArgumentException(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
-
UIMA_IllegalArgumentException
Creates a new exception with a message from theUIMARuntimeException.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.
-
UIMA_IllegalArgumentException
Creates a new exception with the specified cause and a message from theUIMARuntimeException.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
-