Open shepmaster opened 1 year ago
Currently data provided by the wrapped source
error will be automatically available on the wrapping error. However I have a use case (something like source
itself, that wrapping error and wrapped error should provide different value), that I'd like to disable this default behavior.
I'm using provide(priority, ...
to ensure that data comes from the wrapping error, but I'd like a more explicit feature, maybe provide(no_chain, ...
provide(deref)
shorthand for strings et. al. (String
=>&str
)For example:
Disable providing for opaque errors
For example, make this test pass:
Skip providing the value when chaining
For example, make this test pass (ideally improving the syntax as well):
Change
ErrorCompat::backtrace
to use/prefer the Provider API