Skip to content
Snippets Groups Projects
Select Git revision
  • ea31db30b98316d993171cc3ec20c02e8c429f98
  • main default protected
  • 1.8.5
  • 1.8.4
  • 1.8.3
  • 1.8.2
  • 1.8.1
  • 1.8.0
  • 1.7.14
  • 1.7.13
  • 1.7.12
  • 1.7.11
  • 1.7.10
  • 1.7.9
  • 1.7.8
  • 1.7.7
  • 1.7.6
  • 1.7.5
  • 1.7.4
  • 1.7.3
  • 1.7.2
  • 1.7.1
22 results

VlkbAmqp.java

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;
    	}
    
    }