Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rswskg
on Oct 31, 2023
|
parent
|
context
|
favorite
| on:
Unwrapit provides a way to handle errors in JS/TS
Will throw this in here as it's been useful for errors if operating with try/catch
rswskg
on Nov 1, 2023
|
next
[–]
https://www.npmjs.com/package/verror
musicq
on Oct 31, 2023
|
prev
[–]
try/catch has no problem, but the premise is that you know there will be errors been thrown. Say a function `divide`, you can barely tell that whether it will throw errors or not without looking into the source code.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: