InvalidSQLFormatError#

exception astropathdb.logging.exceptions._database.InvalidSQLFormatError(sql, database=None)#

Bases: AstroPathDatabaseError, TypeError

Invalid SQL format error for CasJobs.

Parameters:
  • sql (str)

  • database (str | None)

InvalidSQLFormatError Attributes#

InvalidSQLFormatError References#

Attribute Reference#

attribute EXPECTED_SQL: ClassVar[str] = 'a string, an SQLAlchemy clause, or a sequence of those'#
attribute SAMPLE_ERROR: ClassVar[str] = ' [sampleid]:%r'#
attribute ASTROPATH_ERROR: ClassVar[str] = '[AstroPath]'#
attribute DATABASE_ERROR: ClassVar[str] = '[database]:%r'#
attribute ERROR_WHILE_EXEC: ClassVar[str] = 'Errors occurred while executing query in %s: %s.'#