coolqlite.errors¶
Warning
Except for CoolqliteError and CoolqliteExceptionGroup,
these are unstable and may change.
- exception coolqlite.errors.CoolqliteError¶
Bases:
ExceptionA base exception for all standard coolqlite errors.
- exception coolqlite.errors.CoolqliteExceptionGroup¶
Bases:
ExceptionGroup[E],CoolqliteError,GenericA base exceptiongroup for all standard coolqlite errors.
- exception coolqlite.errors.MissingNamedToSqlFnError(name: str)¶
Bases:
CoolqliteErrorA named adapter was missing.
- exception coolqlite.errors.MissingTypedToSqlFnError¶
Bases:
CoolqliteErrorA value was given of a type the converter didn’t know how to handle.
- type coolqlite.errors.MissingToSqlFnError = MissingTypedToSqlFnError | MissingNamedToSqlFnError¶
- exception coolqlite.errors.ToSqlFnSetupError¶
Bases:
CoolqliteErrorAn error occurred while setting up a tosql function.
- exception coolqlite.errors.ToSqlTypeError¶
Bases:
CoolqliteTypeErrorA type error related to converting to sql.
- exception coolqlite.errors.FromSqlTypeError¶
Bases:
CoolqliteTypeErrorA type error related to converting from sql.
- exception coolqlite.errors.IncorrectTransactionControlError¶
Bases:
CoolqliteErrorSomething incorrect happened when using savepoints. This should only happen if using the savepoint context manager incorrectly, or otherwise doing something that would break a savepoint correctness guarantee.
- exception coolqlite.errors.ParamMissingToSqlFnError(param: Param, cause: MissingToSqlFnError)¶
Bases:
CoolqliteErrorA converter fn was missing. See error message for details.
- cause: MissingToSqlFnError¶
This should be the same as
__cause__but this helps guarantee it’s there.
- exception coolqlite.errors.ToSqlFnFailure(param: Param)¶
Bases:
CoolqliteErrorA converter itself threw an exception.
- exception coolqlite.errors.QueryBuilderErrorGroup(message, exceptions, *_args, **kwargs)¶
Bases:
CoolqliteExceptionGroup[ParamMissingToSqlFnError|ToSqlFnFailure]Errors that occurred during query building.
- exception coolqlite.errors.ResultCountError(*, expected: _RowCount, actual: _RowCount)¶
Bases:
CoolqliteErrorA different number of rows than expected were returned.