Package adql.db.exception
Class UnresolvedJoinException
java.lang.Object
java.lang.Throwable
java.lang.Exception
adql.parser.ParseException
adql.db.exception.UnresolvedJoinException
- All Implemented Interfaces:
Serializable
This exception is thrown when a table between 2 tables can not be resolved,
and particularly because of the join condition (i.e. column names not found, ...).
- Since:
- 1.2
- Version:
- 1.4 (06/2015)
- Author:
- Grégory Mantelet (ARI)
- See Also:
-
Field Summary
Fields inherited from class adql.parser.ParseException
currentToken, eol, expectedTokenSequences, position, tokenImage
-
Constructor Summary
ConstructorsConstructorDescriptionUnresolvedJoinException
(String message) Build a simple UnresolvedJoin.UnresolvedJoinException
(String message, TextPosition errorPosition) Build an UnresolvedJoin and specify, in addition of the error message, the position of the column not resolved. -
Method Summary
Modifier and TypeMethodDescriptionvoid
setPosition
(TextPosition pos) Set the position of the invalid JOIN.Methods inherited from class adql.parser.ParseException
getPosition
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnresolvedJoinException
Build a simple UnresolvedJoin. It is generally used when a column can not be resolved (linked to one of the joined tables).- Parameters:
message
- Message to display explaining why the join can't be resolved.
-
UnresolvedJoinException
Build an UnresolvedJoin and specify, in addition of the error message, the position of the column not resolved.- Parameters:
message
- Message to display explaining why the join can't be resolved.errorPosition
- Position of the wrong part of the join.
-
-
Method Details
-
setPosition
Set the position of the invalid JOIN.- Parameters:
pos
- Position of the concerned JOIN inside the ADQL query.- Since:
- 1.4
-