cds.simbad.ident
Class IdentifierException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cds.simbad.ident.IdentifierException
- All Implemented Interfaces:
- java.io.Serializable
- public class IdentifierException
- extends java.lang.Exception
Exception class for identifier normalization errors.
The exception objects are created by factory methods.
- See Also:
- Serialized Form
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CATALOG_NOTFOUND
private static final int CATALOG_NOTFOUND
- See Also:
- Constant Field Values
IDENTIFIER_SYNTAXERROR
private static final int IDENTIFIER_SYNTAXERROR
- See Also:
- Constant Field Values
CATALOG_AMBIGUITY
private static final int CATALOG_AMBIGUITY
- See Also:
- Constant Field Values
type
private int type
ident
private java.lang.String ident
catname
private java.lang.String catname
catlist
private java.util.ArrayList catlist
IdentifierException
private IdentifierException(int type,
java.lang.String identifier)
IdentifierException
private IdentifierException(int type,
java.util.ArrayList catlist,
java.lang.String identifier)
catalogNotFound
public static IdentifierException catalogNotFound(java.lang.String identifier)
- Factory method. returns an identifierException object for catalog not found error
- Parameters:
identifier
- the whole identifier
- Returns:
- an IdentifierException
identifierSyntaxError
public static IdentifierException identifierSyntaxError(java.util.ArrayList catlist,
java.lang.String identifier)
- Factory method. returns an identifierException object for identifier syntax error
- Parameters:
catlist
- the list of possible catalogues, but wrong fieldsidentifier
- the whole identifier that could not be recognized
- Returns:
- a new IdentifierException object
catalogAmbiguity
public static IdentifierException catalogAmbiguity(java.util.ArrayList catlist,
java.lang.String identifier)
- Factory method. returns an identifierException object for catalog ambiguity
- Parameters:
catlist
- the array of possible catalog name candidatesidentifier
- the whole identifier
- Returns:
- an IdentifierException
getType
public int getType()
getCatName
public java.lang.String getCatName()
getIdentifier
public java.lang.String getIdentifier()
getCatList
public java.util.ArrayList getCatList()
toString
public java.lang.String toString()