Define exception redefinitions for SQLAlchemy DBAPI exceptions.
Mark a function as receiving a filtered exception.
Parameters: |
|
---|
Connect to the engine, including handle_error handlers.
The compat library now builds this into the engine.connect() system as per SQLAlchemy 1.0’s behavior.
Iterate through available filters and invoke those which match.
The first one which raises wins. The order in which the filters are attempted is sorted by specificity - dialect name or “*”, exception class per method resolution order (__mro__). Method resolution order is used so that filter rules indicating a more specific exception class are attempted first.