温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/util/getSystemErrorMap
点击访问原文链接

Node util.getSystemErrorMap function | API Reference | Bun

Node util.getSystemErrorMap function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:util/getSystemErrorMapFgetSystemErrorMap

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:util/getSystemErrorMapFgetSystemErrorMap

function

util.getSystemErrorMap { const errorMap = util.getSystemErrorMap(); const name = errorMap.get(err.errno); console.error(name); // ENOENT }); ```" data-algolia-static="false" data-algolia-merged="false" data-type="Function">function getSystemErrorMap(): Mapnumber, [string, string]>;

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.

fs.access('file/that/does/not/exist', (err) => {
const errorMap = util.getSystemErrorMap();
const name = errorMap.get(err.errno);
console.error(name); // ENOENT
});

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node util.getSystemErrorMap function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for function node:util.getSystemErrorMap | Bun