Package adql.db.exception

## Class UnresolvedTableException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - adql.parser.ParseException
      - - adql.db.exception.UnresolvedTableException

- All Implemented Interfaces:
    `java.io.Serializable`

      public class UnresolvedTableException
      extends ParseException

  This exception is thrown by `DBChecker` when a table does not exist or whose the schema 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
    --- | ---
    `UnresolvedTableException​(ADQLTable table)` | UNKNOWN TABLE
    `UnresolvedTableException​(ADQLTable table, java.lang.String t1, java.lang.String t2)` | AMBIGUOUS TABLE NAME
    `UnresolvedTableException​(ADQLColumn column)` | UNKNOWN TABLE REFERENCE
    `UnresolvedTableException​(ADQLColumn column, java.lang.String table1, java.lang.String table2)` | AMBIGUOUS TABLE REFERENCE

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `java.lang.String` | `getTableName()` |
    `protected void` | `initPosition​(ADQLTable table)` | Initializes the position at which this exception occurs.
    `protected void` | `initPosition​(ADQLColumn column)` |

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

    - #### UnresolvedTableException

          public UnresolvedTableException​(ADQLTable table)

      UNKNOWN TABLE

      Builds the exception with an `ADQLTable` which does not exist.

      Parameters:
        `table` - The unresolved `ADQLTable`.

    - #### UnresolvedTableException

          public UnresolvedTableException​(ADQLTable table,
                                          java.lang.String t1,
                                          java.lang.String t2)

      AMBIGUOUS TABLE NAME

      Builds the exception with an `ADQLTable` which does not have a schema reference AND which may come from more than one schema. The two given schema names are schemas which contain a table with the same name as the given one.

      Parameters:
        `table` - The ambiguous `ADQLTable` (no schema reference).
        `t1` - First possibility.
        `t2` - A second possibility.

    - #### UnresolvedTableException

          public UnresolvedTableException​(ADQLColumn column)

      UNKNOWN TABLE REFERENCE

      Builds the exception with an `ADQLColumn` whose the table reference is unknown.

      Parameters:
        `column` - The `ADQLColumn` whose the table reference is unresolved.

    - #### UnresolvedTableException

          public UnresolvedTableException​(ADQLColumn column,
                                          java.lang.String table1,
                                          java.lang.String table2)

      AMBIGUOUS TABLE REFERENCE

      Builds the exception with an `ADQLColumn` which has an ambiguous table reference. The two given table correspond to tables which match with the table reference of the given `ADQLColumn`.

      Parameters:
        `column` - The `ADQLColumn` whose the table reference is ambiguous.
        `table1` - A table whose the name match with the table reference of the column.
        `table2` - Another table whose the name match with the table reference of the column.

  - ### Method Detail

    - #### initPosition

          protected final void initPosition​(ADQLTable table)

      Initializes the position at which this exception occurs.
      Parameters:
        `table` - The unresolved table.

    - #### initPosition

          protected final void initPosition​(ADQLColumn column)

    - #### getTableName

          public final java.lang.String getTableName()