Y
Hacker News
new
|
ask
|
show
|
jobs
by
rswskg
969 days ago
Will throw this in here as it's been useful for errors if operating with try/catch
2 comments
rswskg
968 days ago
https://www.npmjs.com/package/verror
link
musicq
969 days ago
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.
link