kvikio icon indicating copy to clipboard operation
kvikio copied to clipboard

Raise specific exceptions on HTTP errors instead of `RuntimeError`

Open TomAugspurger opened this issue 11 months ago • 0 comments

Mentioned in https://github.com/rapidsai/kvikio/pull/603#discussion_r1944851855, when we throw an exception while reading a remote file in C++, we currently get a generic RuntimeError in python.

We should be able to translate these to more specific errors (HTTPError, TimeoutError, etc.). Doing a full exception hierarchy like httpx may be a bit much, but at least differentiating between a completed HTTP request with a 500 status code and a timeout is probably worthwhile.

TomAugspurger avatar Feb 07 '25 12:02 TomAugspurger