Package adql.db.exception
Class UnresolvedColumnException
java.lang.Object
java.lang.Throwable
java.lang.Exception
adql.parser.grammar.ParseException
adql.db.exception.UnresolvedColumnException
- All Implemented Interfaces:
Serializable
This exception is thrown by
DBChecker
when a column does not exist
or whose the table reference is ambiguous.- See Also:
-
Field Summary
Fields inherited from class adql.parser.grammar.ParseException
currentToken, EOL, expectedTokenSequences, position, tokenImage
-
Constructor Summary
ConstructorsConstructorDescriptionUNKNOWN COLUMNUnresolvedColumnException
(ADQLColumn c, String col1, String col2) AMBIGUOUS COLUMN NAME -
Method Summary
Methods inherited from class adql.parser.grammar.ParseException
getPosition
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnresolvedColumnException
UNKNOWN COLUMN
Builds the exception with an
ADQLColumn
which does not exist.- Parameters:
c
- The unresolvedADQLColumn
.
-
UnresolvedColumnException
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 Details
-
initPosition
-
getColumnName
-