flowmachine.core.errors.flowmachine_errors¶
Source: flowmachine/core/errors/flowmachine_errors.py
Custom errors raised by flowmachine.
Class InvalidSpatialUnitError¶
Source: flowmachine/core/errors/flowmachine_errors.py
Raised when any class is given a spatial unit that is not valid.
Class MissingColumnsError¶
MissingColumnsError(tables_lacking_columns, columns)
Common base class for all non-exit exceptions.
Class MissingDateError¶
MissingDateError(start=None, stop=None)
Raised when instantiating a class that points to a date that does not exist in the database.
Parameters¶
-
start
,stop
:optional
,str
Pass a single date to include in the error message.
Class NameTooLongError¶
Source: flowmachine/core/errors/flowmachine_errors.py
Custom error to pass when a table name is too long for postgres to store.
Class NotConnectedError¶
NotConnectedError()
Error indicating the database connection is missing.
Class QueryCancelledException¶
QueryCancelledException(query_id)
Exception indicating that a query was cancelled while being run from another thread or FlowMachine instance.
Parameters¶
-
query_id
:str
Identifier of the query
Class QueryErroredException¶
QueryErroredException(query_id)
Exception indicating that a query failed with an error while being run from another thread or FlowMachine instance.
Parameters¶
-
query_id
:str
Identifier of the query
Class QueryResetFailedException¶
QueryResetFailedException(query_id)
Exception indicating that a query failed to reset while being reset from another thread or FlowMachine instance.
Parameters¶
-
query_id
:str
Identifier of the query
Class StoreFailedException¶
StoreFailedException(query_id)
Exception indicating that a query failed to store.
Parameters¶
-
query_id
:str
Identifier of the query
Class UnstorableQueryError¶
UnstorableQueryError(query_obj: 'Query')
Error to raise when attempting to store an unstorable query object.
Parameters¶
-
query_obj
:Query
Query object that cannot be stored.