Skip to content
Snippets Groups Projects
Select Git revision
  • c71db6cacebf38c5223614d1d22c994f80310e86
  • master default protected
  • rocky_8
  • rocky_9
  • pasture
  • testing
  • query
  • v0.2.9
  • v0.2.8
  • v0.2.7
  • v0.2.6
  • v0.2.5
  • v0.2.4
  • v0.2.3
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.2
  • v0.1.1
  • v0.1
20 results

task_executor.py

Blame
  • 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&eacute;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;
    	}
    
    }