Package org.apache.uima.analysis_engine
Class AnalysisEngineProcessException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.uima.UIMAException
-
- org.apache.uima.resource.ResourceProcessException
-
- org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
- All Implemented Interfaces:
java.io.Serializable
,I18nExceptionI
public class AnalysisEngineProcessException extends ResourceProcessException
AnAnalysisEngineProcessException
may be thrown by an Analysis Engine's process method, indicating that a failure occurred during processing.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ANNOTATOR_EXCEPTION
Message key for a standard UIMA exception message: "Annotator processing failed."static java.lang.String
FLOW_CANNOT_CONTINUE_AFTER_REMOVE
Message key for a standard UIMA exception message: "The Analysis Engine(s) {0} have been removed from the flow, and the FlowController has determined the Aggregate Analysis Engine's processing can no longer continue."static java.lang.String
ILLEGAL_DROP_CAS
Message key for a standard UIMA exception message: "The FlowController attempted to drop a CAS that was passed as input to the Aggregate AnalysisEngine containing that FlowController.static java.lang.String
INCORRECT_CAS_INTERFACE
Message key for a standard UIMA exception message: "Expected CAS interface {0}, but received interface {1}."static java.lang.String
REMOVE_AE_FROM_FLOW_NOT_SUPPORTED
Message key for a standard UIMA exception message: "The FlowController class {0} does not support the removeAnalysisEngines method.private static long
serialVersionUID
static java.lang.String
TIMEOUT_ELAPSED
Message key for a standard UIMA exception message: "This AnalysisEngine is serving too many simultaneous requests.static java.lang.String
UNKNOWN_ID_IN_SEQUENCE
Message key for a standard UIMA exception message: "The ASB encountered an unknown Analysis Engine ID "{0}" in the execution sequence."static java.lang.String
UNSUPPORTED_CAS_TYPE
Message key for a standard UIMA exception message: "AnalysisEngine subclass {0} does not support CAS class {1}."static java.lang.String
UNSUPPORTED_STEP_TYPE
Message key for a standard UIMA exception message: "The FlowController returned a Step object of class {0}, which is not supported by this framework implementation."-
Fields inherited from class org.apache.uima.resource.ResourceProcessException
REQUIRED_FEATURE_STRUCTURE_MISSING_FROM_CAS, RESOURCE_DATA_NOT_VALID
-
Fields inherited from class org.apache.uima.UIMAException
STANDARD_MESSAGE_CATALOG
-
-
Constructor Summary
Constructors Constructor Description AnalysisEngineProcessException()
Creates a new exception with a null message.AnalysisEngineProcessException(java.lang.String aMessageKey, java.lang.Object[] aArguments)
Creates a new exception with a message from theUIMAException.STANDARD_MESSAGE_CATALOG
.AnalysisEngineProcessException(java.lang.String aMessageKey, java.lang.Object[] aArguments, java.lang.Throwable aCause)
Creates a new exception with the specified cause and a message from theUIMAException.STANDARD_MESSAGE_CATALOG
.AnalysisEngineProcessException(java.lang.String aResourceBundleName, java.lang.String aMessageKey, java.lang.Object[] aArguments)
Creates a new exception with a the specified message.AnalysisEngineProcessException(java.lang.String aResourceBundleName, java.lang.String aMessageKey, java.lang.Object[] aArguments, java.lang.Throwable aCause)
Creates a new exception with the specified message and cause.AnalysisEngineProcessException(java.lang.Throwable aCause)
Creates a new exception with the specified cause and a null message.
-
Method Summary
-
Methods inherited from class org.apache.uima.UIMAException
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 Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
ANNOTATOR_EXCEPTION
public static final java.lang.String ANNOTATOR_EXCEPTION
Message key for a standard UIMA exception message: "Annotator processing failed."- See Also:
- Constant Field Values
-
UNSUPPORTED_CAS_TYPE
public static final java.lang.String UNSUPPORTED_CAS_TYPE
Message key for a standard UIMA exception message: "AnalysisEngine subclass {0} does not support CAS class {1}."- See Also:
- Constant Field Values
-
TIMEOUT_ELAPSED
public static final java.lang.String TIMEOUT_ELAPSED
Message key for a standard UIMA exception message: "This AnalysisEngine is serving too many simultaneous requests. The timeout period of {0}ms has elapsed."- See Also:
- Constant Field Values
-
UNKNOWN_ID_IN_SEQUENCE
public static final java.lang.String UNKNOWN_ID_IN_SEQUENCE
Message key for a standard UIMA exception message: "The ASB encountered an unknown Analysis Engine ID "{0}" in the execution sequence."- See Also:
- Constant Field Values
-
UNSUPPORTED_STEP_TYPE
public static final java.lang.String UNSUPPORTED_STEP_TYPE
Message key for a standard UIMA exception message: "The FlowController returned a Step object of class {0}, which is not supported by this framework implementation."- See Also:
- Constant Field Values
-
ILLEGAL_DROP_CAS
public static final java.lang.String ILLEGAL_DROP_CAS
Message key for a standard UIMA exception message: "The FlowController attempted to drop a CAS that was passed as input to the Aggregate AnalysisEngine containing that FlowController. The only CASes that may be dropped are those that are created within the same Aggregate AnalysisEngine as the FlowController."- See Also:
- Constant Field Values
-
INCORRECT_CAS_INTERFACE
public static final java.lang.String INCORRECT_CAS_INTERFACE
Message key for a standard UIMA exception message: "Expected CAS interface {0}, but received interface {1}."- See Also:
- Constant Field Values
-
REMOVE_AE_FROM_FLOW_NOT_SUPPORTED
public static final java.lang.String REMOVE_AE_FROM_FLOW_NOT_SUPPORTED
Message key for a standard UIMA exception message: "The FlowController class {0} does not support the removeAnalysisEngines method. Analysis Engines cannot be dynamically removed from the flow."- See Also:
- Constant Field Values
-
FLOW_CANNOT_CONTINUE_AFTER_REMOVE
public static final java.lang.String FLOW_CANNOT_CONTINUE_AFTER_REMOVE
Message key for a standard UIMA exception message: "The Analysis Engine(s) {0} have been removed from the flow, and the FlowController has determined the Aggregate Analysis Engine's processing can no longer continue."- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AnalysisEngineProcessException
public AnalysisEngineProcessException()
Creates a new exception with a null message.
-
AnalysisEngineProcessException
public AnalysisEngineProcessException(java.lang.Throwable aCause)
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
-
AnalysisEngineProcessException
public AnalysisEngineProcessException(java.lang.String aResourceBundleName, java.lang.String aMessageKey, java.lang.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.
-
AnalysisEngineProcessException
public AnalysisEngineProcessException(java.lang.String aResourceBundleName, java.lang.String aMessageKey, java.lang.Object[] aArguments, java.lang.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
-
AnalysisEngineProcessException
public AnalysisEngineProcessException(java.lang.String aMessageKey, java.lang.Object[] aArguments)
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.
-
AnalysisEngineProcessException
public AnalysisEngineProcessException(java.lang.String aMessageKey, java.lang.Object[] aArguments, java.lang.Throwable aCause)
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
-
-