

GitHub - ksawery29/awesome-errors: an error handling library
source link: https://github.com/ksawery29/awesome-errors
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Warning
Awesome-errors is still being worked on. If you want to help, feel free to send a pull request or an issue.
awesome-errors
about
Awesome-errors is an error handling library built with readability in mind. It's written in typescript and works with Node.js only.
why to use it?
When it comes to error handling most of the time errors are hard to read and debug. With awesome-errors it shows only the most important content of a stack and a preview of where the stack was thrown, making it a lot easier to debug.
example
try {
throw new Error("something went wrong");
} catch (error) {
new AError(error);
}
output
installation
Just install it using npm: npm install awesome-errors
and import it: import AError from "awesome-errors"
Recommend
-
55
Mistakes happen. That’s a given. According to Murphy’s law, whatever can go wrong, will go wrong. Your job, as a programmer, is to be prepared for that fact. You have a set of tools that are prepared to do precisely that....
-
26
Handling Errors in JavaScript: the definite guide Photo by
-
40
README.md errors
-
37
Go 2 aims to improve the overhead of error handling , but do you know what is better than an improved syntax for h...
-
29
I actually covered this topic before, inthis post, but given my recent experience I feel it needs reiterating and a bit of restructuring. It boils down to the observation that any error handling I have encountered — be i...
-
35
Go’s infamous error handling has caught quite the attention from outsiders to the programming language, often touted as one of the language’s most questionable design decisions. If you look into any project on Github written in Go, it’s almost a...
-
9
Errors and Error Handling in JavaScriptWhy handle them in the first place?
-
5
New issue Remove None errors from our error enums #2055 Closed ...
-
20
TypeScript Error Translator Confused by TypeScript errors? Translate them into human-readable language right in your IDE. ...
-
6
🚀 turbo strings Turbo strings is a string manipulation library made in typescript for nodejs and browsers. It include...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK