-
Notifications
You must be signed in to change notification settings - Fork 14
feat: inherit options from base Error class to add support for the cause property
#536
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
Conversation
|
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
| options: RequestErrorOptions, | ||
| ) { | ||
| super(message); | ||
| super(message, { cause: options.cause }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be simplified to
| super(message, { cause: options.cause }); | |
| super(message, options}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uzlopak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Error class to add support for the cause property
…`cause` property (#535/#536) * feat: inherit options from base Error class * chore(deps): update dependency esbuild to ^0.27.0 --------- Co-authored-by: wolfy1339 <[email protected]> Co-authored-by: wolfy1339 <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
Merged via #535 |

Resolves #ISSUE_NUMBER
Before the change?
ErrorclassAfter the change?
RequestErrorOptionsnow extendsErrorOptionsPull request checklist
Does this introduce a breaking change?
Please see our docs on breaking changes to help!