Skip to main content
getSystemErrorMap - node__util.d.ts - Node documentation
function getSystemErrorMap

Usage in Deno

```typescript import { getSystemErrorMap } from "node:node__util.d.ts"; ```
getSystemErrorMap(): Map<number, [string, string]>
> [!WARNING] Deno compatibility > This symbol is currently not supported. Returns a Map of all system error codes available from the Node.js API. The mapping between error codes and error names is platform-dependent. See `Common System Errors` for the names of common errors. ```js fs.access('file/that/does/not/exist', (err) => { const errorMap = util.getSystemErrorMap(); const name = errorMap.get(err.errno); console.error(name); // ENOENT }); ```

Return Type

Map<number, [string, string]>