|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.apache.uima.InternationalizedRuntimeException org.apache.uima.UIMARuntimeException org.apache.uima.UIMA_IllegalStateException
public class UIMA_IllegalStateException
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 delcared in the throws
clause of methods.
Field Summary | |
---|---|
static 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. |
static String |
COULD_NOT_CREATE_FRAMEWORK
Message key for a standard UIMA exception message: "The UIMA framework implementation (class {0}) could not be created." |
static 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." |
static 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" |
static 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. |
static String |
READ_PAST_END_OF_COLLECTION
Message key for a standard UIMA exception message: There are no more elements in the collection. |
static String |
REQUIRED_METHOD_CALL
Message key for a standard UIMA exception message: "The method {0} must be called before the method {1}." |
static String |
RESOURCE_ALREADY_INITIALIZED
Message key for a standard UIMA exception message: "The initialize(ResourceSpecifier) method on Resource {0} was called more than once. |
Constructor Summary | |
---|---|
UIMA_IllegalStateException()
Creates a new exception with a null message. |
|
UIMA_IllegalStateException(String aMessageKey,
Object[] aArguments)
Creates a new exception with a message from the UIMARuntimeException.STANDARD_MESSAGE_CATALOG . |
|
UIMA_IllegalStateException(String aMessageKey,
Object[] aArguments,
Throwable aCause)
Creates a new exception with the specified cause and a message from the UIMARuntimeException.STANDARD_MESSAGE_CATALOG . |
|
UIMA_IllegalStateException(String aResourceBundleName,
String aMessageKey,
Object[] aArguments)
Creates a new exception with a the specified message. |
|
UIMA_IllegalStateException(String aResourceBundleName,
String aMessageKey,
Object[] aArguments,
Throwable aCause)
Creates a new exception with the specified message and cause. |
|
UIMA_IllegalStateException(Throwable aCause)
Creates a new exception with the specified cause and a null message. |
Method Summary |
---|
Methods inherited from class org.apache.uima.InternationalizedRuntimeException |
---|
getArguments, getCause, getLocalizedMessage, getLocalizedMessage, getMessage, getMessageKey, getResourceBundleName, initCause |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String COULD_NOT_CREATE_FRAMEWORK
public static final String RESOURCE_ALREADY_INITIALIZED
public static final String COULD_NOT_INSTANTIATE_XMLIZABLE
public static final String NO_DELEGATE_ANALYSIS_ENGINES
public static final String REQUIRED_METHOD_CALL
public static final String READ_PAST_END_OF_COLLECTION
public static final String NO_NEXT_CAS
public static final String CANNOT_SET_CAS_MANAGER
Constructor Detail |
---|
public UIMA_IllegalStateException()
public UIMA_IllegalStateException(Throwable aCause)
aCause
- the original exception that caused this exception to be thrown, if anypublic UIMA_IllegalStateException(String aResourceBundleName, String aMessageKey, Object[] aArguments)
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.public UIMA_IllegalStateException(String aResourceBundleName, String aMessageKey, Object[] aArguments, Throwable aCause)
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 anypublic UIMA_IllegalStateException(String aMessageKey, Object[] aArguments)
UIMARuntimeException.STANDARD_MESSAGE_CATALOG
.
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.public UIMA_IllegalStateException(String aMessageKey, Object[] aArguments, Throwable aCause)
UIMARuntimeException.STANDARD_MESSAGE_CATALOG
.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |