Use the native error.cause property #862
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
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 customcause
property and handing the configuredcause
to the super constructor.The text was updated successfully, but these errors were encountered: