Repository navigation
docs: clarify exception context guidance - #19377
Merged
Merged
Conversation
jt2594838
commented
Nov 24, 2026
| - **Spotless** with Google Java Format (GOOGLE style). Import order: `org.apache.iotdb`, blank, `javax`, `java`, static. | ||
| - **Checkstyle** is also configured (see `checkstyle.xml` at project root). | ||
| - Java source/target level is 17 (compiled with `maven.compiler.release=17` on JDK 17+). | ||
| - **Exception context.** Include enough diagnostic context to identify the failed operation and |
Contributor
Author
There was a problem hiding this comment.
This repository-wide rule gives maintainers actionable diagnostics for serialization and validation failures by asking exception messages to identify the operation and safe input context. It also preserves wrapped causes and keeps user-facing messages aligned with the existing i18n guidance. In StreamIntent decoding, this context can identify a short buffer, invalid status ordinal, or missing assignedTo value.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19377 +/- ##
============================================
+ Coverage 49.44% 49.59% +0.15%
Complexity 718 718
============================================
Files 5656 5671 +15
Lines 418222 419616 +1394
Branches 55296 55507 +211
============================================
+ Hits 206769 208106 +1337
- Misses 211453 211510 +57 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
Example
Before,
throw new IOException()gives no indication of the failed operation or input condition. The guidance now asks for safe details such as the decoded field, expected condition, and actual value or available input length.Validation
git diff --check