Skip to content

Conversation

dziemba
Copy link
Member

@dziemba dziemba commented May 11, 2022

Adding the HTTP method to the failure exception allows for better
visibility into which call exactly failed. We already had the HTTP path
in the exception but there are usually multiple HTTP methods that are
valid for a single path.

@codecov
Copy link

codecov bot commented May 11, 2022

Codecov Report

Merging #98 (2877a2f) into master (1dd9b28) will increase coverage by 0.18%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #98      +/-   ##
============================================
+ Coverage     70.43%   70.62%   +0.18%     
- Complexity      223      225       +2     
============================================
  Files            36       36              
  Lines           849      851       +2     
  Branches         35       35              
============================================
+ Hits            598      601       +3     
+ Misses          226      225       -1     
  Partials         25       25              
Impacted Files Coverage Δ
...om/spotify/github/v3/clients/RepositoryClient.java 64.76% <ø> (ø)
...va/com/spotify/github/v3/clients/GitHubClient.java 72.84% <100.00%> (ø)
...hub/v3/exceptions/ReadOnlyRepositoryException.java 100.00% <100.00%> (ø)
...fy/github/v3/exceptions/RequestNotOkException.java 100.00% <100.00%> (+11.11%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1dd9b28...2877a2f. Read the comment docs.

@dziemba dziemba force-pushed the exception-http-verb branch from 85f4072 to 82d49ba Compare May 12, 2022 07:56
Adding the HTTP method to the failure exception allows for better
visibility into which call exactly failed. We already had the HTTP path
in the exception but there are usually multiple HTTP methods that are
valid for a single path.
@dziemba dziemba force-pushed the exception-http-verb branch from 82d49ba to 2877a2f Compare May 12, 2022 07:57
Copy link

@lufsariskogen lufsariskogen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

@dziemba dziemba merged commit e19601c into master May 12, 2022
@dziemba dziemba deleted the exception-http-verb branch May 12, 2022 08:41
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.

2 participants