Node errors can be identified with either:
error.code
: an OS-agnostic string (more cross-platform).error.errno
: an OS-specific integer constant.
It is possible to convert between both using
os.constants.errno
,
util.getSystemErrorName
.
and
util.getSystemErrorMap
.
Most available error.code
start with E
and
can be fired on any OS. However few
start with W
and can only be fired on Windows.