Fix Error Message Typos and Improve Error Handling, Validation, and Recovery#26
Open
pranavkonde wants to merge 2 commits intoakave-ai:mainfrom
Open
Fix Error Message Typos and Improve Error Handling, Validation, and Recovery#26pranavkonde wants to merge 2 commits intoakave-ai:mainfrom
pranavkonde wants to merge 2 commits intoakave-ai:mainfrom
Conversation
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.
Fix Error Message Typos and Improve Error Handling, Validation, and Recovery
This PR addresses error message typos and enhances error handling, validation, and recovery mechanisms in the codebase.
Error Handling:
Added pre-validation checks for file uploads. Implemented structured error types with codes and detailed messages. Fixed handling of empty files in the Upload function.
Parameter Validation:
Standardized parameter validation across SDK configuration. Introduced SDKConfig struct with defined min/max constraints. Added validation for encryption keys and block sizes.
Error Recovery:
Implemented a retry mechanism with exponential backoff. Added configurable retry policies for transient failures. Improved context cancellation handling.
Code Structure:
Fixed typo in blockIndex parameter name. Standardized error message formatting and improved documentation. Enhanced consistency in error wrapping.
Breaking Changes:
New error types may require updates in client error handling. Stricter validation may reject some previously accepted values.
Testing:
Added tests for configuration parameter validation. Enhanced coverage for error recovery scenarios.