4 ms·
Will throw this in here as it's been useful for errors if operating with try/catch
by rswskg 3y ago
Will throw this in here as it's been useful for errors if operating with try/catch
- musicq 3y agotry/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.
- rswskg 3y agohttps://www.npmjs.com/package/verror https://www.npmjs.com/package/verror