Exceptions¶
-
exception
dbload.exceptions.SqlFileEmptyError(path: pathlib.Path)[source]¶ File with annotated SQL queries is empty.
Raised when a text file with annotated SQL queries is empty.
-
exception
dbload.exceptions.QueryExecutionError[source]¶ Exception while executing a query.
Raised when an error happens during executing of the function decorated by
query()decorator.
-
exception
dbload.exceptions.ScenarioExecutionError[source]¶ Exception while executing a scenario.
Raised when an error happens during executing of the function decorated by
scenario()decorator.
-
exception
dbload.exceptions.ConnectionClosingError[source]¶ Exception while closing the connection to database.
-
exception
dbload.exceptions.RollbackError[source]¶ Exception during transaction rollback in database.
-
exception
dbload.exceptions.ConnectionClosedError(scenario_name: str)[source]¶ Closed connection passed to scenario.
-
exception
dbload.exceptions.ConnectionTypeError(connection: Any)[source]¶ Connection object is of wrong type.
-
exception
dbload.exceptions.MatchingSqlQueryNotFoundError(name: str, match: str)[source]¶ Matching SQL query does not exist.
-
exception
dbload.exceptions.NotDecoratedByQueryError(func: Any)[source]¶ Object must be decorated by query decorator first.
-
exception
dbload.exceptions.NotFunctionTypeError(obj: Any)[source]¶ Decorated object is not a function.
-
exception
dbload.exceptions.NotQueryResultTypeError(obj: Any)[source]¶ Returned result is not a QueryResult.
-
exception
dbload.exceptions.QueryAlreadyExistsError(registration_name: str)[source]¶ Attempting to register query that already exists.
-
exception
dbload.exceptions.ScenarioAlreadyExistsError(registration_name: str)[source]¶ Attempting to register scenario that already exists.
-
exception
dbload.exceptions.UnsupportedPredefinedSimulationError(simulation_name)[source]¶ Attempting to load predefined simulation that does not exit.
-
exception
dbload.exceptions.ImportlibResourcesNotFoundError[source]¶ Required module importlib.resources or importlib_resources not found.