Skip to content

Add Other(BoxedError) variant to EnvisionError#221

Merged
ryanoneill merged 2 commits intomainfrom
feature/error-other-variant
Mar 9, 2026
Merged

Add Other(BoxedError) variant to EnvisionError#221
ryanoneill merged 2 commits intomainfrom
feature/error-other-variant

Conversation

@ryanoneill
Copy link
Owner

Adds a catch-all Other(BoxedError) variant to EnvisionError with convenience constructor, Display/source support, doc tests, and unit tests.

ryanoneill and others added 2 commits March 8, 2026 22:32
Add a catch-all Other variant that wraps arbitrary errors without
requiring manual .map_err() calls. Includes a convenience constructor,
Display/source() support, doc tests, and unit tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use std::io::Error::other() instead of std::io::Error::new(ErrorKind::Other, ...)
in doc tests and unit tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.08%. Comparing base (fa6edbb) to head (9fc128c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #221      +/-   ##
==========================================
- Coverage   92.09%   92.08%   -0.02%     
==========================================
  Files         146      146              
  Lines       12798    12804       +6     
==========================================
+ Hits        11786    11790       +4     
- Misses       1012     1014       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ryanoneill ryanoneill merged commit 1eb0e17 into main Mar 9, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants