feat(python): expose structured IggyError#3696
Open
mmmmxa wants to merge 10 commits into
Open
Conversation
…, minor fixes, updated README
mmmmxa
marked this pull request as ready for review
July 18, 2026 10:21
Author
|
/ready |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3696 +/- ##
============================================
- Coverage 73.99% 73.99% -0.01%
Complexity 937 937
============================================
Files 1301 1302 +1
Lines 147393 147405 +12
Branches 122945 122945
============================================
+ Hits 109063 109070 +7
- Misses 34858 34863 +5
Partials 3472 3472
🚀 New features to boost your workflow:
|
Contributor
|
@mmmmxa Will come back to this once all existing python sdk PRs are merged since they will require aligning the error types to the struct introduced here. |
Contributor
|
/request-review @slbotbm |
Author
|
@slbotbm Could you please let me know when it’s going to happen? Or let me know a way of finding out when should I merge the master and make same changes to the new code as well? |
Contributor
|
sure, when the other prs are merged, i'll review yours and ping you |
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.
Which issue does this PR address?
Closes #3618
Rationale
Introduce
IggyErrorclass in Python SDK to fully represent Iggy-specific errors from Rust. (See issue for more info)What changed?
Python was exposing Iggy failures as plain RuntimeError or ValueError with only a message, while no code and snake case error name was provided.
The changes introduce the
IggyErrorPython class that representIggyErrorin Rust 1 to 1. Thus, it has code, message and the snake case error name, which gives more transparency in debugging and more information for clean exception handling.Local Execution
AI Usage