Skip to content
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

Rework of timeout errors (part 3): extend all raised timeout exceptions with HTTPI::TimeoutError #198

Closed
wants to merge 21 commits into from

Conversation

907th
Copy link

@907th 907th commented Aug 27, 2018

Wrap adapter-specific timeout errors with a TimeoutError.

Source: #195

@907th 907th mentioned this pull request Aug 27, 2018
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 97.118% when pulling 4186857 on 907th:http_timeouts_part3 into 878faee on savonrb:master.

@rogerleite
Copy link
Member

Waiting for release 2.4.4 be published before merging this PR.

@@ -48,6 +50,9 @@ def cert_directory
# @see HTTPI.request
def request(method)
_request { |options| @client.send method, options }
rescue EmHttpTimeoutError
$!.extend TimeoutError
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to just raise a new exception and if you want to know the source, use Exception#cause.

@ioquatix
Copy link
Contributor

ioquatix commented Oct 6, 2021

Can you please consider the feedback and rebase this on master? Thanks!

@907th
Copy link
Author

907th commented Dec 2, 2023

I'm closing stale issue.

@907th 907th closed this Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants