"""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."""