AstroPathDatabaseError#

exception astropathdb.logging.exceptions._database.AstroPathDatabaseError(msg, *, database=None, sampleid=None)#

Bases: AstroPathError

Raised when database-related errors occur, does not include connection errors.

Parameters:
  • msg (str)

  • database (str | None)

  • sampleid (int | str | None)

AstroPathDatabaseError Attributes#

AstroPathDatabaseError References#

Attribute Reference#

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