Package adql.db.exception
Class UnresolvedColumnException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- adql.parser.ParseException
-
- adql.db.exception.UnresolvedColumnException
-
- All Implemented Interfaces:
java.io.Serializable
public class UnresolvedColumnException extends ParseException
This exception is thrown byDBChecker
when a column does not exist or whose the table reference is ambiguous.- Version:
- 08/2011
- Author:
- Grégory Mantelet (CDS)
- See Also:
DBChecker
, Serialized Form
-
-
Field Summary
-
Fields inherited from class adql.parser.ParseException
currentToken, eol, expectedTokenSequences, position, tokenImage
-
-
Constructor Summary
Constructors Constructor Description UnresolvedColumnException(ADQLColumn c)
UNKNOWN COLUMNUnresolvedColumnException(ADQLColumn c, java.lang.String col1, java.lang.String col2)
AMBIGUOUS COLUMN NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getColumnName()
protected void
initPosition(ADQLColumn c)
-
Methods inherited from class adql.parser.ParseException
getPosition
-
-
-
-
Constructor Detail
-
UnresolvedColumnException
public UnresolvedColumnException(ADQLColumn c)
UNKNOWN COLUMN
Builds the exception with an
ADQLColumn
which does not exist.- Parameters:
c
- The unresolvedADQLColumn
.
-
UnresolvedColumnException
public UnresolvedColumnException(ADQLColumn c, java.lang.String col1, java.lang.String col2)
AMBIGUOUS COLUMN NAME
Builds the exception with an
ADQLColumn
which does not have a table reference AND which may come from more than one table OR with anADQLColumn
which may reference more than one column in the table.- Parameters:
c
- The ambiguousADQLColumn
.col1
- First possibility.col2
- A second possibility.
-
-
Method Detail
-
initPosition
protected final void initPosition(ADQLColumn c)
-
getColumnName
public final java.lang.String getColumnName()
-
-