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

Node util.getSystemErrorName function | API Reference | Bun

Node util.getSystemErrorName function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:util/getSystemErrorNameFgetSystemErrorName

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:util/getSystemErrorNameFgetSystemErrorName

function

util.getSystemErrorName { const name = util.getSystemErrorName(err.errno); console.error(name); // ENOENT }); ```" data-algolia-static="false" data-algolia-merged="false" data-type="Function">function getSystemErrorName(err: number): string;

Returns the string name for a numeric error code that comes from a 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 name = util.getSystemErrorName(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.getSystemErrorName function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for function node:util.getSystemErrorName | Bun