This repository was archived by the owner on Jan 3, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
This repository was archived by the owner on Jan 3, 2026. It is now read-only.
feat!: Use Native cause in GaxiosError #572
Copy link
Copy link
Closed
Labels
next major: breaking changethis is a change that we should wait to bundle into the next major versionthis is a change that we should wait to bundle into the next major versionpriority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.semver: majorHint for users that this is an API breaking change.Hint for users that this is an API breaking change.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
Node 16+ supports Error#cause. We should use it instead of the existing GaxiosError#error property:
Lines 37 to 42 in c7d5064
| constructor( | |
| message: string, | |
| public config: GaxiosOptions, | |
| public response?: GaxiosResponse<T>, | |
| public error?: Error | NodeJS.ErrnoException | |
| ) { |
Documentation: https://nodejs.org/api/errors.html#errorcause
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
next major: breaking changethis is a change that we should wait to bundle into the next major versionthis is a change that we should wait to bundle into the next major versionpriority: p3Desirable enhancement or fix. May not be included in next release.Desirable enhancement or fix. May not be included in next release.semver: majorHint for users that this is an API breaking change.Hint for users that this is an API breaking change.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.