Package adql.db.exception
Class UnresolvedTableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
adql.parser.grammar.ParseException
adql.db.exception.UnresolvedTableException
- All Implemented Interfaces:
Serializable
This exception is thrown by
DBChecker when a table does not exist
or whose the schema reference is ambiguous.- See Also:
-
Field Summary
Fields inherited from class adql.parser.grammar.ParseException
currentToken, EOL, expectedTokenSequences, position, tokenImage -
Constructor Summary
ConstructorsConstructorDescriptionUNKNOWN TABLEUnresolvedTableException(ADQLTable table, String t1, String t2) AMBIGUOUS TABLE NAMEUnresolvedTableException(ADQLColumn column) UNKNOWN TABLE REFERENCEUnresolvedTableException(ADQLColumn column, String table1, String table2) AMBIGUOUS TABLE REFERENCE -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringprotected final voidinitPosition(ADQLTable table) Initializes the position at which this exception occurs.protected final voidinitPosition(ADQLColumn column) Methods inherited from class adql.parser.grammar.ParseException
getPositionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnresolvedTableException
UNKNOWN TABLE
Builds the exception with an
ADQLTablewhich does not exist.- Parameters:
table- The unresolvedADQLTable.
-
UnresolvedTableException
AMBIGUOUS TABLE NAME
Builds the exception with an
ADQLTablewhich does not have a schema reference AND which may come from more than one schema. The two given schema names are schemas which contain a table with the same name as the given one.- Parameters:
table- The ambiguousADQLTable(no schema reference).t1- First possibility.t2- A second possibility.
-
UnresolvedTableException
UNKNOWN TABLE REFERENCE
Builds the exception with an
ADQLColumnwhose the table reference is unknown.- Parameters:
column- TheADQLColumnwhose the table reference is unresolved.
-
UnresolvedTableException
AMBIGUOUS TABLE REFERENCE
Builds the exception with an
ADQLColumnwhich has an ambiguous table reference. The two given table correspond to tables which match with the table reference of the givenADQLColumn.- Parameters:
column- TheADQLColumnwhose the table reference is ambiguous.table1- A table whose the name match with the table reference of the column.table2- Another table whose the name match with the table reference of the column.
-
-
Method Details
-
initPosition
Initializes the position at which this exception occurs.- Parameters:
table- The unresolved table.
-
initPosition
-
getTableName
-