Repository navigation
Form fix public error handling - #1108
Conversation
…pe_registry.hpp just throws a std::runtime_error like normal.
…too for consistency with the header.
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
| Layer / File(s) | Summary |
|---|---|
Direct runtime errors form/form/form_source_type_registry.hpp, form/form/form_source_type_registry.cpp |
The registry now throws std::runtime_error for null product data and empty conversion functions. The header removes the util/error.hpp include. |
Estimated code review effort: 2 (Simple) | ~5 minutes
Change: Refactor
Possibly related PRs
- Framework-R-D/phlex#1080: Both PRs change the same registry error call sites, but PR
#1080standardizes error messages through a helper that this PR bypasses.
Suggested reviewers: wwuoneway, knoepfel, gemmeren
Merge Risk: 
Minimal · previous review b9557
-
This is a small error-handling cleanup that keeps the same exception type and changes only the message text. No behavioral risk is identified. Run the formatter, using the
@phlexbot formatcomment, to clear the failing format check before merging.
Pre-merge checks: 
4
-
Full details: Title check
-
Explanation
The title "Form fix public error handling" matches the changeset. The PR moves the public error path out of the registry. The registry now throws std::runtime_error instead of calling form::detail::experimental::error, and the util/error.hpp include is removed. The title is short and specific, though it uses the broad term "public error handling" and does not name the runtime_error change. That is a minor gap, not a mismatch.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
Fix failing CI checks
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
|
@phlexbot format |
Format Fixes Applied❌ clang-format workflow failure |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1108 +/- ##
==========================================
+ Coverage 91.45% 91.50% +0.04%
==========================================
Files 185 185
Lines 6073 6073
Branches 973 973
==========================================
+ Hits 5554 5557 +3
+ Misses 331 328 -3
Partials 188 188
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Removes form::experimental::error from public interface. FORM's registration code needs to throw an exception, and I accidentally replaced it with form::experimental::error. But form/util/error.hpp isn't exported by the project, and we probably don't want to export it. This mistake stops things like FORM parts of phlex-examples from compiling.