Handle errors in a simple, stable, consistent way
-
Updated
Jun 7, 2024 - JavaScript
Handle errors in a simple, stable, consistent way
Properly update an error's class.
Properly update an error's message.
Properly create error classes.
Log errors with Winston
Merge an error with its `cause`
`modern-errors` plugin to handle process errors.
Polyfill `error.cause`
Create HTTP error responses.
`modern-errors` plugin to create HTTP error responses.
Properly update an error's properties
`modern-errors` plugin to serialize/parse errors.
Properly wrap an error's message.
`modern-errors` plugin to print where to report bugs.
Show some ❤️ to Node.js process errors
Check if a value is an `Error` instance.
Create custom error classes
Properly update an error's stack.
💣 Error handler for CLI applications 💥
Convert errors to/from plain objects.
Add a description, image, and links to the error topic page so that developers can more easily learn about it.
To associate your repository with the error topic, visit your repo's landing page and select "manage topics."