Files
leleka/scripts/e2e/codex/tasks/feature-query/seed/minidb/errors.py
T

18 lines
426 B
Python

"""Exception hierarchy of minidb."""
class MiniDBError(Exception):
"""Base class of every error raised on purpose by minidb."""
class SchemaError(MiniDBError):
"""A column definition or a value does not fit the schema."""
class TableError(MiniDBError):
"""A table is missing, already exists, or an index request is invalid."""
class RowNotFound(MiniDBError):
"""No row with the requested id exists."""