Open PhucNguyen1501 opened 2 years ago
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.
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 😀
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?
Describe the bug Graphlient::Errors::TimeoutError does not inherit from Graphlient::Errors::ServerError currently, hence
inner_exception
,status_code
andresponse
can't be called.To Reproduce N/A
Expected behavior As per description, Graphlient::Errors::TimeoutError should inherit from Graphlient::Errors::ServerError.
Screenshots
According to source code, TimeoutError inherits from base Error currently