Closed damooo closed 1 year ago
Hi!
Thanks for your feedback!
source
is provided by by the Error
impl.
All fields are public so you can modify the fields as you please or am I maybe getting something wrong?
I'm considering to also add http::extensions
so that typed values can be carried by the ApiError
Sorry, a bit late. Was looking at the builder ;-)
There is a draft PR (WIP): https://github.com/chridou/http-api-problem/pull/41
Currently
ApiError
'ssource
and fields cannot be accessed in any way. Thus it prohibits acting based on source error, or any custom fields added by middleware. It would be useful if corresponding getters are provided.