opensearch-project / opensearch-rs

OpenSearch Rust Client
Apache License 2.0
63 stars 34 forks source link

Refactor error types to use `thiserror` and internalize `BuildError` #228

Closed Xtansia closed 11 months ago

Xtansia commented 11 months ago

Description

Refactors the error types to use thiserror and internalize the BuildError type.

Split from #132.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.

codecov[bot] commented 11 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (71b677f) 74.00% compared to head (f24b729) 74.07%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #228 +/- ## ========================================== + Coverage 74.00% 74.07% +0.06% ========================================== Files 403 403 Lines 64198 64138 -60 ========================================== Hits 47508 47508 + Misses 16690 16630 -60 ``` | [Flag](https://app.codecov.io/gh/opensearch-project/opensearch-rs/pull/228/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | | |---|---|---| | [integration](https://app.codecov.io/gh/opensearch-project/opensearch-rs/pull/228/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `74.07% <ø> (+0.06%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.