fs error api

27 views
Skip to first unread message

Nick Santos

unread,
May 21, 2015, 12:35:34 PM5/21/15
to nod...@googlegroups.com
Are the errors thrown by the 'fs' module documented or expected to be stable?

As an example, if I run
fs.statSync('file-that-does-not-exist.js')
it throws an error with error.code == 'ENOENT'

Is it OK to rely on this code as a stable part of the API? Are the possible error codes enumerated anywhere?

Thanks!
Nick

Ryan Schmidt

unread,
May 22, 2015, 1:09:35 PM5/22/15
to nod...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages