public class AnnotationImplException extends 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(String s)
Add an argument to a
AnnotationImplException object. |
String[] |
getArguments()
Get the arguments to the exception string.
|
String |
getBundleShortName()
Get the short name of the message bundle, i.e., the name without the package prefix.
|
int |
getError() |
String |
getMessage() |
String |
getMessageCode()
Get the string identifier for this exception.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
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 String getMessage()
getMessage
in class Throwable
public String toString()
public boolean addArgument(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
.s
- -public String getMessageCode()
public String[] getArguments()
public String getBundleShortName()
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.