-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate SQL errors from connection errors during query execution #74
Comments
yes, thats possible. What Exception do you think would match this case? |
Great. I don't know if there are other types of errors next to SQL errors and connection errors. But for this particular example, when something went wrong with the connection during a query execution, it would be handy to have something like a ConnectionError. Does Python have something standard defined for this? |
Yes, that'll work. Not sure if you want to give even more detail. Does a BrokenPipeError or a ConnectionResetError apply here? But a ConnectionError is good enough for me. |
Fixed in master and 1.4.0 |
Currently, when something (anything?) went wrong during a query execution, the user gets an OperationalError. For instance,
Would it be possible to separate SQL errors from other errors, in particular, connection errors? In that way, it would be much easier for the users to capture and deal with the query exeuction errors differently than all other types of errors.
The text was updated successfully, but these errors were encountered: