Package adql.db.exception

## Class UnresolvedColumnException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - adql.parser.ParseException
      - - adql.db.exception.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

- - ### Field Summary

    - ### Fields inherited from class adql.parser.ParseException

      `currentToken, eol, expectedTokenSequences, position, tokenImage`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `UnresolvedColumnException​(ADQLColumn c)` | UNKNOWN COLUMN
    `UnresolvedColumnException​(ADQLColumn c, java.lang.String col1, java.lang.String col2)` | AMBIGUOUS COLUMN NAME

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getColumnName()` |
    `protected void` | `initPosition​(ADQLColumn c)` |

    - ### 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`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### 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()