Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
18 lines
426 B
Python
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."""
|