Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper function for fetching errors of specific type #543

Merged
merged 2 commits into from Jan 2, 2024

Conversation

Guldem
Copy link
Contributor

@Guldem Guldem commented Jan 2, 2024

Added simple helper function for fetching error of a specific type. This could be helpful when a error converter is added to convert error into a custom error object. This reduces the boilerplate needed to get the custom error from the response.

See #429

Copy link

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e84d077) 94.02% compared to head (bb46a21) 94.06%.
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #543      +/-   ##
===========================================
+ Coverage    94.02%   94.06%   +0.03%     
===========================================
  Files           10       10              
  Lines          469      472       +3     
===========================================
+ Hits           441      444       +3     
  Misses          28       28              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@techouse techouse self-assigned this Jan 2, 2024
@techouse techouse added the enhancement New feature or request label Jan 2, 2024
@techouse
Copy link
Collaborator

techouse commented Jan 2, 2024

LGTM. You could add some more explicit tests, though. 😄

@Guldem
Copy link
Contributor Author

Guldem commented Jan 2, 2024

LGTM. You could add some more explicit tests, though. 😄

Not sure what you mean? I find them pretty explicit haha 😅 Could improve to test names though

@techouse
Copy link
Collaborator

techouse commented Jan 2, 2024

Could improve to test names though

That. It just tests for int at the moment. Make a FooError or something. 🧪

@techouse techouse merged commit 4ba5a83 into lejard-h:develop Jan 2, 2024
6 checks passed
techouse added a commit that referenced this pull request Jan 8, 2024
# chopper

## 7.1.0

- #545
- #543
- #548

# chopper_generator

## 7.1.0

- #545
- #549
@techouse techouse mentioned this pull request Jan 8, 2024
techouse added a commit that referenced this pull request Jan 9, 2024
## 7.0.11

- #545
- #543
- #548

# chopper_generator

## 7.0.8

- #545
- #549
@techouse techouse mentioned this pull request Jan 9, 2024
techouse added a commit that referenced this pull request Jan 9, 2024
## 7.1.0

- #545
- #543
- #548

# chopper_generator

## 7.1.0

- #545
- #549
@techouse techouse mentioned this pull request Jan 9, 2024
@Guldem Guldem deleted the feature/type_cast_errors branch April 6, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants