Class UIMA_IllegalStateException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UIMA_IllegalStateException
    extends UIMARuntimeException
    Signals that a method has been invoked at an illegal or inappropriate time. In other words, the object on which the method was called is not in an appropriate state for the requested operation. This extends RuntimeException and so does not need to be declared in the throws clause of methods.
    See Also:
    Serialized Form
    • Field Detail

      • COULD_NOT_CREATE_FRAMEWORK

        public static final java.lang.String COULD_NOT_CREATE_FRAMEWORK
        Message key for a standard UIMA exception message: "The UIMA framework implementation (class {0}) could not be created."
        See Also:
        Constant Field Values
      • RESOURCE_ALREADY_INITIALIZED

        public static final java.lang.String RESOURCE_ALREADY_INITIALIZED
        Message key for a standard UIMA exception message: "The initialize(ResourceSpecifier) method on Resource {0} was called more than once. A Resource may only be initialized once."
        See Also:
        Constant Field Values
      • COULD_NOT_INSTANTIATE_XMLIZABLE

        public static final java.lang.String COULD_NOT_INSTANTIATE_XMLIZABLE
        Message key for a standard UIMA exception message: "The XML parser was configured to instantiate class {0}, but that class is not able to be instantiated."
        See Also:
        Constant Field Values
      • NO_DELEGATE_ANALYSIS_ENGINES

        public static final java.lang.String NO_DELEGATE_ANALYSIS_ENGINES
        Message key for a standard UIMA exception message: "This ASB has not been provided with any Analysis Engines with which to communicate"
        See Also:
        Constant Field Values
      • REQUIRED_METHOD_CALL

        public static final java.lang.String REQUIRED_METHOD_CALL
        Message key for a standard UIMA exception message: "The method {0} must be called before the method {1}."
        See Also:
        Constant Field Values
      • READ_PAST_END_OF_COLLECTION

        public static final java.lang.String READ_PAST_END_OF_COLLECTION
        Message key for a standard UIMA exception message: There are no more elements in the collection.
        See Also:
        Constant Field Values
      • NO_NEXT_CAS

        public static final java.lang.String NO_NEXT_CAS
        Message key for a standard UIMA exception message: CasIterator.next was called when there were no more CASes remaining to be read.
        See Also:
        Constant Field Values
      • CANNOT_SET_CAS_MANAGER

        public static final java.lang.String CANNOT_SET_CAS_MANAGER
        Message key for a standard UIMA exception message: ResourceManager.setCasManager was called after the CAS Manager had already been set. You can only call setCasManager once, and you cannot have previously called ResourceManager.getCasManager or initialized any AnalysisEngines that use this ResourceManager.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UIMA_IllegalStateException

        public UIMA_IllegalStateException()
        Creates a new exception with a null message.
      • UIMA_IllegalStateException

        public UIMA_IllegalStateException​(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
      • UIMA_IllegalStateException

        public UIMA_IllegalStateException​(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 the MessageFormat class.
        aArguments - The arguments to the message. null may be used if the message has no arguments.
      • UIMA_IllegalStateException

        public UIMA_IllegalStateException​(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 the MessageFormat 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_IllegalStateException

        public UIMA_IllegalStateException​(java.lang.String aMessageKey,
                                          java.lang.Object[] aArguments)
        Creates a new exception with a message from the UIMARuntimeException.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 the MessageFormat class.
        aArguments - The arguments to the message. null may be used if the message has no arguments.
      • UIMA_IllegalStateException

        public UIMA_IllegalStateException​(java.lang.String aMessageKey,
                                          java.lang.Object[] aArguments,
                                          java.lang.Throwable aCause)
        Creates a new exception with the specified cause and a message from the UIMARuntimeException.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 the MessageFormat 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