Handle errors in a simple, stable, consistent way
-
Updated
May 29, 2025 - JavaScript
Handle errors in a simple, stable, consistent way
Merge an error with its `cause`
Normalize exceptions/errors
Create custom error classes
Properly create error classes.
Properly update an error's properties
Properly wrap an error's message.
Properly update an error's stack.
Properly update an error's class.
Properly update an error's message.
Some different classes for handling the error types and more
Add a description, image, and links to the error-classes topic page so that developers can more easily learn about it.
To associate your repository with the error-classes topic, visit your repo's landing page and select "manage topics."