org.apache.uima.cas.impl
public class AnnotationImplException extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
CANT_ADD_TOP
Type system parsing error for file "{0}": couldn't add top type "{1}" at line {2}, column {3}.
|
static int |
COULDNT_ADD_FEAT
Error parsing types system file "{0}": feature "{1}" could not be added at line {2}, column
{3}.
|
static int |
COULDNT_ADD_TYPE
Error parsing types system file "{0}": type "{1}" could not be added at line {2}, column {3}.
|
static int |
NULL_DOCSTREAM
Error printing type system: set docStream first.
|
static int |
PARSING_ERROR
Error parsing types system file "{0}": expected {1} but found "{2}" at line {3}, column {4}.
|
static int |
UNKN_TYPE
Error parsing types system file "{0}": type "{1}" must be declared before it is used at line
{2}, column {3}.
|
Constructor and Description |
---|
AnnotationImplException(int error)
Create a new
AnnotationImplException |
Modifier and Type | Method and Description |
---|---|
boolean |
addArgument(java.lang.String s)
Add an argument to a
AnnotationImplException object. |
java.lang.String[] |
getArguments()
Get the arguments to the exception string.
|
java.lang.String |
getBundleShortName()
Get the short name of the message bundle, i.e., the name without the package prefix.
|
int |
getError() |
java.lang.String |
getMessage() |
java.lang.String |
getMessageCode()
Get the string identifier for this exception.
|
java.lang.String |
toString() |
public static final int CANT_ADD_TOP
public static final int PARSING_ERROR
public static final int UNKN_TYPE
public static final int COULDNT_ADD_FEAT
public static final int COULDNT_ADD_TYPE
public static final int NULL_DOCSTREAM
public AnnotationImplException(int error)
AnnotationImplException
error
- The error code.public int getError()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
"AnnotationImplException: "
.public boolean addArgument(java.lang.String s)
AnnotationImplException
object. Excess arguments will be
ignored, and missing arguments will have the value null
. 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 a null String
has no effect! So if you don't know the value of an
argument, use something like ""
or "UNKNOWN"
, but not
null
.public java.lang.String getMessageCode()
public java.lang.String[] getArguments()
public java.lang.String getBundleShortName()
Copyright © 2014. All Rights Reserved.