MCPcopy Index your code
hub / github.com/nodejs/node / isPermissionModelError

Function isPermissionModelError

lib/internal/errors.js:117–119  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

115}
116
117function isPermissionModelError(err) {
118 return typeof err !== 'number' && err.code && err.code === 'ERR_ACCESS_DENIED';
119}
120
121/**
122 * Every realm has its own prepareStackTraceCallback. When `error.stack` is

Callers 2

constructorMethod · 0.85
constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…