DEV Community

loading...

Discussion on: Error Cause in JavaScript

Collapse
hemanth profile image
hemanth.hm Author

If the error were thrown from deep internal methods, the thrown error may not be straightforward to debug, with the cause things like these and exceptions shall get easier to handle and trace.

Collapse
gokulkrishh profile image
Gokulakrishnan Kalaikovan

Hmmm, we will know soon once people start using it and how they utilize it.

Thread Thread
hemanth profile image
hemanth.hm Author

With AggregateError, we get breadth. With the cause property, we get depth.