public class CASAdminException extends RuntimeException
| Modifier and Type | Field and Description | 
|---|---|
| static int | BAD_FEATURE_SYNTAXInvalid feature name "{0}". | 
| static int | BAD_TYPE_SYNTAXInvalid type name "{0}". | 
| static int | DESERIALIZATION_ERRORError deserializing type system. | 
| static int | DUPLICATE_FEATURETrying to define feature "{0}" on type "{1}" with range "{2}", but feature has already been
 defined on (super)type "{3}" with range "{4}". | 
| static int | FLUSH_DISABLEDCan't flush CAS, flushing is disabled. | 
| static int | JCAS_ERROR{0} | 
| static int | MUST_COMMIT_INDEX_REPOSITORYIndex repository has not been committed; can't create CAS. | 
| static int | MUST_COMMIT_TYPE_SYSTEMType system has not been committed; can't create index repository. | 
| static int | REPOSITORY_LOCKEDCan't add index to a committed repository. | 
| static int | TYPE_IS_FEATURE_FINALCan't add feature to type "{0}" since it is feature final. | 
| static int | TYPE_IS_INH_FINALCan't derive from type "{0}" since it is inheritance final. | 
| static int | TYPE_SYSTEM_LOCKEDType system is committed; can't add types or features. | 
| Constructor and Description | 
|---|
| CASAdminException(int error)Create a new  CASAdminException | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addArgument(String s)Add an argument to a  CASAdminExceptionobject. | 
| 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, setStackTracepublic static final int REPOSITORY_LOCKED
public static final int TYPE_SYSTEM_LOCKED
public static final int MUST_COMMIT_TYPE_SYSTEM
public static final int MUST_COMMIT_INDEX_REPOSITORY
public static final int BAD_TYPE_SYNTAX
public static final int BAD_FEATURE_SYNTAX
public static final int TYPE_IS_INH_FINAL
public static final int TYPE_IS_FEATURE_FINAL
public static final int DESERIALIZATION_ERROR
public static final int FLUSH_DISABLED
public static final int JCAS_ERROR
public static final int DUPLICATE_FEATURE
public CASAdminException(int error)
CASAdminExceptionerror - The error code.public int getError()
public String getMessage()
getMessage in class Throwablepublic String toString()
public boolean addArgument(String s)
CASAdminException 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 - the argument to addpublic String getMessageCode()
public String[] getArguments()
public String getBundleShortName()
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.