Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.JS error code meanings? (Specifically fs)

Does anyone know what all of the error codes mean for Node.js, particularly the fs package?

I've looked all over, and can't find any documentation that gives me a list of error codes and their meanings.

like image 882
samanime Avatar asked May 15 '14 16:05

samanime


People also ask

What does fs mean in node JS?

js provides an inbuilt module called FS (File System). Node. js gives the functionality of file I/O by providing wrappers around the standard POSIX functions. All file system operations can have synchronous and asynchronous forms depending upon user requirements.

What is fs in Require (' fs ')?

js file system module allows you to work with the file system on your computer. To include the File System module, use the require() method: var fs = require('fs'); Common use for the File System module: Read files.

What does fs module mean?

The fs module stands for File System.

How many types of errors are there in node JS?

Generally, errors can be siloed into two main categories: programmer mistakes and operational problems.


1 Answers

Here's some links that should help. Not sure there's a single page out there that has this information catalogued clearly.

  • uv.h defines most (all?) of them with a brief description. I think this is the best link I found in my brief github search.
  • uv-errno.h lists most of the UV error codes. libuv is the cross-platform async I/O library node uses.
  • How libuv maps windows system errors to uv errors
  • the node_constants.cc file has a bunch more
like image 138
Peter Lyons Avatar answered Sep 30 '22 09:09

Peter Lyons