Class UnresolvedColumnException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnresolvedColumnException
    extends ParseException
    This exception is thrown by DBChecker when a column does not exist or whose the table reference is ambiguous.
    Version:
    08/2011
    Author:
    Grégory Mantelet (CDS)
    See Also:
    DBChecker, Serialized Form
    • Constructor Detail

      • UnresolvedColumnException

        public UnresolvedColumnException​(ADQLColumn c)

        UNKNOWN COLUMN

        Builds the exception with an ADQLColumn which does not exist.

        Parameters:
        c - The unresolved ADQLColumn.
      • UnresolvedColumnException

        public UnresolvedColumnException​(ADQLColumn c,
                                         java.lang.String col1,
                                         java.lang.String col2)

        AMBIGUOUS COLUMN NAME

        Builds the exception with an ADQLColumn which does not have a table reference AND which may come from more than one table OR with an ADQLColumn which may reference more than one column in the table.

        Parameters:
        c - The ambiguous ADQLColumn.
        col1 - First possibility.
        col2 - A second possibility.
    • Method Detail

      • initPosition

        protected final void initPosition​(ADQLColumn c)
      • getColumnName

        public final java.lang.String getColumnName()