gavo.adql.common module¶
Exceptions and helper functions for ADQL processing.
-
class
gavo.adql.common.
Absent
[source]¶ Bases:
object
is a sentinel to pass as default to nodes.getChildOfType.
-
exception
gavo.adql.common.
AmbiguousColumn
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.Error
is raised if a column name matches more than one column in a compound query.
-
exception
gavo.adql.common.
BadKeywords
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.Error
is raised when an ADQL node is constructed with bad keywords.
This is a development help and should not occur in production code.
-
exception
gavo.adql.common.
ColumnNotFound
(colName, hint=None)[source]¶ Bases:
gavo.adql.common.Error
,gavo.utils.excs.NotFoundError
is raised if a column name cannot be resolved.
-
exception
gavo.adql.common.
Error
(msg='', hint=None)[source]¶ Bases:
gavo.utils.excs.Error
A base class for the exceptions from this module.
-
class
gavo.adql.common.
FieldInfoGetter
[source]¶ Bases:
object
An abstract class to retrieve table metadata.
A subclass of this must be passed into adql.parseAnnotating. Implementations must fill out the getInfosFor(tableName) method, which must return a sequence of (column name, adql.FieldInfo) pairs for the named table.
plain strings for table names will be normalised (lowercased).
-
exception
gavo.adql.common.
FlattenError
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.Error
is raised when something cannot be flattened.
-
exception
gavo.adql.common.
GeometryError
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.Error
is raised if something is wrong with a geometry.
-
exception
gavo.adql.common.
IncompatibleTables
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.Error
is raised when the operands of a set operation are not deemed compatible.
-
exception
gavo.adql.common.
MoreThanOneChild
(searchedType, toks)[source]¶ Bases:
gavo.adql.common.NoChild
is raised if a node is asked for a unique child but has more than one.
-
exception
gavo.adql.common.
MorphError
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.Error
is raised when the expectations of the to-ADQL morphers are violated.
-
exception
gavo.adql.common.
NoChild
(searchedType, toks)[source]¶ Bases:
gavo.adql.common.Error
is raised if a node is asked for a non-existing child.
-
exception
gavo.adql.common.
NotImplementedError
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.Error
is raised for features we don’t (yet) support.
-
exception
gavo.adql.common.
RegionError
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.GeometryError
is raised if a region specification is in some way bad.
-
exception
gavo.adql.common.
TableNotFound
(tableName, hint=None)[source]¶ Bases:
gavo.adql.common.Error
,gavo.utils.excs.NotFoundError
is raised when a table name cannot be resolved.
-
exception
gavo.adql.common.
UfuncError
(msg='', hint=None)[source]¶ Bases:
gavo.adql.common.Error
is raised if something is wrong with a call to a user defined function.