Select Git revision
UnresolvedJoinException.java
-
Grégory Mantelet authored
exist anymore. ADQLParser is now a mix between the former ADQLParserFactory and ADQLParser2xx. All ADQLParser2xx resulting from the compilation of the JavaCC files are now named ADQLGrammar2xx and implement the new interface ADQLGrammar. The JavaCC parsers are no longer used directly. This is the role of ADQLParser to simplify the parser usage and to allow an easy switch between different grammar versions. Besides, for more clarity in the class organisation, all generated parser classes have been moved into the package `adql.parser.grammar`.
Grégory Mantelet authoredexist anymore. ADQLParser is now a mix between the former ADQLParserFactory and ADQLParser2xx. All ADQLParser2xx resulting from the compilation of the JavaCC files are now named ADQLGrammar2xx and implement the new interface ADQLGrammar. The JavaCC parsers are no longer used directly. This is the role of ADQLParser to simplify the parser usage and to allow an easy switch between different grammar versions. Besides, for more clarity in the class organisation, all generated parser classes have been moved into the package `adql.parser.grammar`.
UnresolvedJoinException.java 2.12 KiB
package adql.db.exception;
/*
* This file is part of ADQLLibrary.
*
* ADQLLibrary is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ADQLLibrary is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ADQLLibrary. If not, see <http://www.gnu.org/licenses/>.
*
* Copyright 2013-2015 - Astronomisches Rechen Institut (ARI)
*/
import adql.parser.grammar.ParseException;
import adql.query.TextPosition;
/**
* 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, ...).
*
* @author Grégory Mantelet (ARI)
* @version 1.4 (06/2015)
* @since 1.2
*/
public class UnresolvedJoinException extends ParseException {
private static final long serialVersionUID = 1L;
/**
* Build a simple UnresolvedJoin.
* It is generally used when a column can not be resolved (linked to one of the joined tables).
*
* @param message Message to display explaining why the join can't be resolved.
*/
public UnresolvedJoinException(String message){
super(message);
}
/**
* Build an UnresolvedJoin and specify, in addition of the error message, the position of the column not resolved.
*
* @param message Message to display explaining why the join can't be resolved.
* @param errorPosition Position of the wrong part of the join.
*/
public UnresolvedJoinException(String message, TextPosition errorPosition){
super(message, errorPosition);
}
/**
* Set the position of the invalid JOIN.
*
* @param pos Position of the concerned JOIN inside the ADQL query.
*
* @since 1.4
*/
public void setPosition(final TextPosition pos){
this.position = pos;
}
}