improved error handling: #44
Merged
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 implements significant error handling improvements for the reqwest-rs-labview library:
Core Changes:
- error_kind: Type of error (timeout, connection, etc.)
- error_url: URL associated with the error
- error_source: Root cause from error chain
- error_message: Detailed human-readable message
- get_error_kind.vi - Returns error type constant
- get_error_message.vi - Returns detailed error message
- get_error_url.vi - Returns associated URL
- get_error_source.vi - Returns root cause
- get_has_error.vi - Checks for any error
- raise_any_errors.vi - New error raising VI
- reqwest_error_kind_enum.ctl - Error kind enumeration control
- Removed get_has_transport_error.vi and get_transport_error.vi in favor of the new comprehensive error handling
The changes provide both machine-readable error classification for programmatic handling and human-readable detailed messages for debugging, making error handling in LabVIEW applications more robust and informative.
This enables raising very detailed error information, was well as allowing the user to check the type of error (like a timeout error) via the get_error_kind.vi method.
Fixes #38