-
-
Notifications
You must be signed in to change notification settings - Fork 335
Closed
Description
Currently, the inner kind of the error type is unexposed which makes mapping into an SDKs error types.
https://github.com/hyperium/http/blob/master/src/error.rs#L25-L35
This works well for displaying the description but if I want to map the result to a different error to make it consistent I cannot. For example, if I'm using both hyper
and http
(this may work better in the future) I cannot match a Uri parse error in hyper to that of http with ease and combine them into a single BadUri enum. In fact, it's deeper than that in that the inner types for the Uri errors actually point to another struct and error kind.
I also acknowledge that I'm still new to rust and this means that I might be missing a design pattern that I should use.
Metadata
Metadata
Assignees
Labels
No labels