-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Attach error with bad_result_access
The exception thrown during access to a `result` object previously simply contained a generic error message, but did not contain the error code. This doesn't lend much context to the actual error, which complicates identification by the user. The `std::expected` proposal for which this project was once based on throws an exception containing the `E` type, but derives from an exception containing the `void` type. This specialization of the exception is precisely what was being avoided by not doing this in the first place as part of this implementation. However, since designsh ave changed, it has become more apparent that it would be useful to attach the exact error type into the exception for the few cases that this will be used.
- Loading branch information
1 parent
3f5c849
commit 5e7e83c
Showing
2 changed files
with
133 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.