You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 31, 2018. It is now read-only.
Of course, every single *Sync method in the API throws synchronously, although in theory they could take callbacks and execute them with err synchronously. This includes calls to require for example.
I'd like to collect some examples of operational errors in Node that are synchronously thrown at the moment.
Please post examples you're aware of
Examples:
Out of memory
Parsing Invalid JSON
Attempting to bind to a closed UDP socket
From https://nodejs.org/api/dgram.html
Listening to an invalid port
https://github.com/nodejs/node/blob/master/lib/net.js#L1340
Of course, every single
*Syncmethod in the API throws synchronously, although in theory they could take callbacks and execute them witherrsynchronously. This includes calls torequirefor example.