Course lesson

Improve Application-wide Error Handling rethrowing JavaScript Error with the Error Cause

The new cause data property that you can add to a thrown Error can be used to retain access to the original error caught in a promise rejection.

Duration
3 min
Access
Free
Transcript
Retained from source evidence

The new cause data property that you can add to a thrown Error can be used to retain access to the original error caught in a promise rejection.