Skip to content

fix(error): map error codes to portable std conditions via default_er…#324

Merged
mvandeberg merged 1 commit into
cppalliance:developfrom
mvandeberg:pr/267-capy-err-cond
Jun 19, 2026
Merged

fix(error): map error codes to portable std conditions via default_er…#324
mvandeberg merged 1 commit into
cppalliance:developfrom
mvandeberg:pr/267-capy-err-cond

Conversation

@mvandeberg

Copy link
Copy Markdown
Contributor

…ror_condition

Override default_error_condition in error_cat so each
capy error maps to its canonical portable condition: canceled ->
std::errc::operation_canceled, timeout -> std::errc::timed_out, and eof/stream_truncated/not_found to their cond::* equivalents.

Resolves #267

@cppalliance-bot

cppalliance-bot commented Jun 18, 2026

Copy link
Copy Markdown

An automated preview of the documentation is available at https://324.capy.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-06-19 16:03:03 UTC

@cppalliance-bot

cppalliance-bot commented Jun 18, 2026

Copy link
Copy Markdown

GCOVR code coverage report https://324.capy.prtest3.cppalliance.org/gcovr/index.html
LCOV code coverage report https://324.capy.prtest3.cppalliance.org/genhtml/index.html
Coverage Diff Report https://324.capy.prtest3.cppalliance.org/diff-report/index.html

Build time: 2026-06-19 16:17:34 UTC

@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.07%. Comparing base (d21ae5d) to head (62d3190).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop     #324   +/-   ##
========================================
  Coverage    98.07%   98.07%           
========================================
  Files          164      164           
  Lines         8758     8774   +16     
========================================
+ Hits          8589     8605   +16     
  Misses         169      169           
Flag Coverage Δ
linux 98.17% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
include/boost/capy/error.hpp 100.00% <ø> (ø)
src/error.cpp 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d21ae5d...62d3190. Read the comment docs.

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

…ror_condition

Override default_error_condition in error_cat so each
capy error maps to its canonical portable condition: canceled ->
std::errc::operation_canceled, timeout -> std::errc::timed_out, and
eof/stream_truncated/not_found to their cond::* equivalents.
@mvandeberg mvandeberg force-pushed the pr/267-capy-err-cond branch from 42f1216 to 62d3190 Compare June 19, 2026 15:57
@mvandeberg mvandeberg merged commit e18bd71 into cppalliance:develop Jun 19, 2026
38 checks passed
@mvandeberg mvandeberg deleted the pr/267-capy-err-cond branch June 19, 2026 17:06
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.

Comparing capy::error::canceled with std::errc::operation_canceled should pass

2 participants