[AI-8th] Add RFC 7807 ProblemDetail support for SOFA exceptions#1421
Open
pmupkin wants to merge 3 commits intosofastack:masterfrom
Open
[AI-8th] Add RFC 7807 ProblemDetail support for SOFA exceptions#1421pmupkin wants to merge 3 commits intosofastack:masterfrom
pmupkin wants to merge 3 commits intosofastack:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1421 +/- ##
============================================
+ Coverage 82.94% 83.19% +0.25%
- Complexity 2975 3036 +61
============================================
Files 340 345 +5
Lines 9833 9940 +107
Branches 1178 1194 +16
============================================
+ Hits 8156 8270 +114
+ Misses 1163 1155 -8
- Partials 514 515 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CrazyHZM
requested changes
Apr 30, 2026
Comment on lines
+48
to
+57
| static final URI ABOUT_BLANK = URI.create("about:blank"); | ||
| static final URI RUNTIME_EXCEPTION_TYPE = URI | ||
| .create("https://sofastack.io/errors/runtime-exception"); | ||
| static final URI RPC_EXCEPTION_TYPE = URI | ||
| .create("https://sofastack.io/errors/rpc-exception"); | ||
| static final URI RPC_CONFIGURATION_TYPE = URI | ||
| .create("https://sofastack.io/errors/rpc-configuration-exception"); | ||
|
|
||
| private static final Pattern ERROR_CODE_PATTERN = Pattern | ||
| .compile("(SOFA-BOOT-\\d{2}-\\d{5})"); |
Member
There was a problem hiding this comment.
At present, none of these error types exist and the relevant descriptions need to be removed.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR(Related issue #1403) adds a first-class ProblemDetail integration for SOFABoot so SOFA-specific exceptions can be returned as standardized RFC 7807 error responses.
It introduces: