-
Notifications
You must be signed in to change notification settings - Fork 588
Open
Description
The current error API is insufficient for advanced use-cases.
The two main limitations are:
- there is no access to structured error information
- there are no public constructors
Some example use-cases where this causes issues:
- integration with error reporters using the
core::error::Error::sourceAPI - interoperability with types using other
Prostmajor version (no way to bridge the error types) - keeping structured information through serialization
- asserting the received error in tests
The previous stringy API was not great either, but it was possible to handle some of these use cases since the constructor was public. Following the changes in #1330, this is no longer possible without hacks.
The following PR is a proposal to fix these issues while avoiding exposing internal implementation details:
Metadata
Metadata
Assignees
Labels
No labels