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 #132

Merged
merged 1 commit into from
Jul 15, 2020
Merged

Adding hierarchical errors #132

merged 1 commit into from
Jul 15, 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 5055cba into master Jul 15, 2020
@bhelx bhelx deleted the better-errors branch July 15, 2020 21:13
douglasmiller added a commit that referenced this pull request Jul 31, 2020
# Changelog

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

[Full Changelog](3.10.0...HEAD)

**Implemented enhancements:**

- Add request types to TS definitions [\#134](#134) ([bhelx](https://github.com/bhelx))
- Adding hierarchical errors [\#132](#132) ([douglasmiller](https://github.com/douglasmiller))

**Merged pull requests:**

- Latest Changes for 2019-10-10 \(usage, measured units, etc\) [\#138](#138) ([bhelx](https://github.com/bhelx))
- Running npm audit fix [\#133](#133) ([bhelx](https://github.com/bhelx))
- Mon Jul  6 14:52:04 UTC 2020 Upgrade API version v2019-10-10 [\#130](#130) ([douglasmiller](https://github.com/douglasmiller))
@douglasmiller douglasmiller mentioned this pull request Jul 31, 2020
douglasmiller added a commit that referenced this pull request Jul 31, 2020
[Full Changelog](3.10.0...HEAD)

**Implemented enhancements:**

- Add request types to TS definitions [\#134](#134) ([bhelx](https://github.com/bhelx))
- Adding hierarchical errors [\#132](#132) ([douglasmiller](https://github.com/douglasmiller))

**Merged pull requests:**

- Latest Changes for 2019-10-10 \(usage, measured units, etc\) [\#138](#138) ([bhelx](https://github.com/bhelx))
- Running npm audit fix [\#133](#133) ([bhelx](https://github.com/bhelx))
- Mon Jul  6 14:52:04 UTC 2020 Upgrade API version v2019-10-10 [\#130](#130) ([douglasmiller](https://github.com/douglasmiller))
@joannasese joannasese added the V3 v2019-10-10 Client label Feb 12, 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