Glossary Term
Error: cause
The cause data property of an Error instance indicates the specific original cause of the error.
It is used when catching and re-throwing an error with a more-specific or useful error message in order to still have access to the original error.
The SuppressedError and AggregateError subclasses both serve the purpose of associating multiple errors. They both represent multiple failing sites: SuppressedError represents an error that occurred while handling another error, while AggregateError represents a collection of multiple, unrelated errors that occurred during the same operation. The cause property represents a single failing site, with the wrapper error only adding context to the cause and not representing an additional failure.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
