Skip to content

Comments

Fix Error Message Typos and Improve Error Handling, Validation, and Recovery#26

Open
pranavkonde wants to merge 2 commits intoakave-ai:mainfrom
pranavkonde:main
Open

Fix Error Message Typos and Improve Error Handling, Validation, and Recovery#26
pranavkonde wants to merge 2 commits intoakave-ai:mainfrom
pranavkonde:main

Conversation

@pranavkonde
Copy link
Contributor

@pranavkonde pranavkonde commented Apr 1, 2025

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.

@pranavkonde pranavkonde changed the title Fix Typos Fix Error Message Typos and Improve Error Handling, Validation, and Recovery Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant