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

Docs incorrectly state that Graphlient::Errors::TimeoutError does not inherit from Graphlient::Errors::ServerError #92

Open
PhucNguyen1501 opened this issue Jul 28, 2022 · 3 comments

Comments

@PhucNguyen1501
Copy link

Describe the bug
Graphlient::Errors::TimeoutError does not inherit from Graphlient::Errors::ServerError currently, hence inner_exception, status_code and response can't be called.

To Reproduce
N/A

Expected behavior
As per description, Graphlient::Errors::TimeoutError should inherit from Graphlient::Errors::ServerError.

Screenshots
image
image

According to source code, TimeoutError inherits from base Error currently

image

@dblock
Copy link
Collaborator

dblock commented Jul 28, 2022

This is by design I believe. A timeout is a client-side timeout, and you never got a response from the server (so no response or status code to be had). I'll close, but feel free to convince me I'm wrong and we can reopen.

@dblock dblock closed this as completed Jul 28, 2022
@PhucNguyen1501
Copy link
Author

PhucNguyen1501 commented Jul 28, 2022

This is by design I believe. A timeout is a client-side timeout, and you never got a response from the server (so no response or status code to be had). I'll close, but feel free to convince me I'm wrong and we can reopen.

Hi Daniel @dblock ,
If this is by design, can we please update the description? It is confusing to have the doc says otherwise.

I do agree that a timed out error should not inherit from the server error 😀

@dblock
Copy link
Collaborator

dblock commented Jul 29, 2022

For sure @PhucNguyen1501! I see the problem now, I didn't pay attention to the description. I edited the title of this issue and reopened it. Care to PR?

@dblock dblock reopened this Jul 29, 2022
@dblock dblock changed the title Graphlient::Errors::TimeoutError does not inherit from Graphlient::Errors::ServerError Docs incorrectly state that Graphlient::Errors::TimeoutError does not inherit from Graphlient::Errors::ServerError Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants