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

Use the native error.cause property #862

Open
rowanmanning opened this issue Jan 8, 2024 · 0 comments
Open

Use the native error.cause property #862

rowanmanning opened this issue Jan 8, 2024 · 0 comments
Labels
good introductory issue This issue will be good for a newcomer to Reliability Kit to work on maintenance Work to maintain the repo and stop creeping tech debt

Comments

@rowanmanning
Copy link
Member

Now that we only support Node.js 18+, we should switch to using the native error.cause property.

What problem does this feature solve?

This modernises our use of the Error class and also will hopefully reduce the amount of code we maintain.

Ideal solution

This should hopefully just be a change to BaseError, removing the custom cause property and handing the configured cause to the super constructor.

@rowanmanning rowanmanning added good introductory issue This issue will be good for a newcomer to Reliability Kit to work on maintenance Work to maintain the repo and stop creeping tech debt labels Jan 8, 2024
@rowanmanning rowanmanning moved this from 📥 Inbox to 📝 Planned in Reliability Kit Roadmap Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good introductory issue This issue will be good for a newcomer to Reliability Kit to work on maintenance Work to maintain the repo and stop creeping tech debt
Projects
Status: 📝 Planned
Development

No branches or pull requests

1 participant