You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap connection exceptions from underlying requests library with TrinoConnectionError (or example)
I don't want to include requests in my application to know when my Trino server connection has failed.
Example
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8081):
Max retries exceeded with url: /v1/statement (
Caused by NewConnectionError(
'<urllib3.connection.HTTPConnection object at 0x7efc0a320580>:
Failed to establish a new connection: [Errno 111] Connection refused'))
Describe alternatives you've considered
N/A
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Describe the feature
Wrap connection exceptions from underlying
requests
library withTrinoConnectionError
(or example)I don't want to include
requests
in my application to know when my Trino server connection has failed.Example
Describe alternatives you've considered
N/A
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: