Package org.apache.uima.cas.impl
Class AnnotationImplException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.uima.cas.impl.AnnotationImplException
- All Implemented Interfaces:
Serializable
Exception class for package org.apache.uima.cas.impl. Automatically generated from message
catalog.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Type system parsing error for file "{0}": couldn't add top type "{1}" at line {2}, column {3}.static final int
Error parsing types system file "{0}": feature "{1}" could not be added at line {2}, column {3}.static final int
Error parsing types system file "{0}": type "{1}" could not be added at line {2}, column {3}.static final int
Error printing type system: set docStream first.static final int
Error parsing types system file "{0}": expected {1} but found "{2}" at line {3}, column {4}.static final int
Error parsing types system file "{0}": type "{1}" must be declared before it is used at line {2}, column {3}. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add an argument to aAnnotationImplException
object.String[]
Get the arguments to the exception string.Get the short name of the message bundle, i.e., the name without the package prefix.int
getError()
Get the string identifier for this exception.toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
CANT_ADD_TOP
public static final int CANT_ADD_TOPType system parsing error for file "{0}": couldn't add top type "{1}" at line {2}, column {3}. Non-empty hierarchy?- See Also:
-
PARSING_ERROR
public static final int PARSING_ERRORError parsing types system file "{0}": expected {1} but found "{2}" at line {3}, column {4}.- See Also:
-
UNKN_TYPE
public static final int UNKN_TYPEError parsing types system file "{0}": type "{1}" must be declared before it is used at line {2}, column {3}.- See Also:
-
COULDNT_ADD_FEAT
public static final int COULDNT_ADD_FEATError parsing types system file "{0}": feature "{1}" could not be added at line {2}, column {3}. Name already in use?- See Also:
-
COULDNT_ADD_TYPE
public static final int COULDNT_ADD_TYPEError parsing types system file "{0}": type "{1}" could not be added at line {2}, column {3}. Name already in use?- See Also:
-
NULL_DOCSTREAM
public static final int NULL_DOCSTREAMError printing type system: set docStream first.- See Also:
-
-
Constructor Details
-
AnnotationImplException
public AnnotationImplException(int error) Create a newAnnotationImplException
- Parameters:
error
- The error code.
-
-
Method Details
-
getError
public int getError()- Returns:
- The error code for the exception. This may be useful when the error needs to be handed over language boundaries. Instead of handing over the complete exception object, return the error code, and the receiving application can look up the error in the message file. Unfortunately, the error parameters get lost that way.
-
getMessage
- Overrides:
getMessage
in classThrowable
- Returns:
- The message of the exception. Useful for including the text in another exception.
-
toString
-
addArgument
Add an argument to aAnnotationImplException
object. Excess arguments will be ignored, and missing arguments will have the valuenull
. Add arguments in the order in which they are specified in the message catalog (i.e. add %1 first, %2 next, and so on). Adding anull String
has no effect! So if you don't know the value of an argument, use something like""
or"UNKNOWN"
, but notnull
.- Parameters:
s
- -- Returns:
- true if found a null spot to insert string s into
-
getMessageCode
Get the string identifier for this exception.- Returns:
- The internal message key.
-
getArguments
Get the arguments to the exception string.- Returns:
- The arguments to the exception.
-
getBundleShortName
Get the short name of the message bundle, i.e., the name without the package prefix.- Returns:
- The short name of the message bundle.
-