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

Adding hierarchical errors #610

Merged
merged 1 commit into from
Jul 27, 2020
Merged

Adding hierarchical errors #610

merged 1 commit into from
Jul 27, 2020

Conversation

douglasmiller
Copy link
Contributor

Non-breaking update to error classes to give them a hierarchical structure. This will facilitate differentiating between a ClientError and a ServerError for example.

New error classes have also been added to be parent classes for some existing errors (e.g. ForbiddenError is a new class and both InvalidApiKeyError and InvalidPermissionsError extend it)

@bhelx bhelx merged commit 40b1e13 into master Jul 27, 2020
@bhelx bhelx deleted the better-errors branch July 27, 2020 17:16
douglasmiller added a commit that referenced this pull request Jul 31, 2020
# Changelog

## [Unreleased](https://github.com/recurly/recurly-client-ruby/tree/HEAD)

[Full Changelog](3.9.0...HEAD)

**Implemented enhancements:**

- Latest Changes for 2019-10-10 \(usage, measured units, etc\) [\#621](#621) ([bhelx](https://github.com/bhelx))
- Adding hierarchical errors [\#610](#610) ([douglasmiller](https://github.com/douglasmiller))
@douglasmiller douglasmiller mentioned this pull request Jul 31, 2020
@joannasese joannasese added the V3 v2019-10-10 Client label Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement V3 v2019-10-10 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants