Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.errors.NotCapable

A modern runtime for JavaScript and TypeScript.
Latest
class Deno.errors.NotCapable
extends Error
import { Deno } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.deno.ns.d.ts";
const { NotCapable } = Deno.errors;

Raised when trying to perform an operation while the relevant Deno permission (like --allow-read) has not been granted.

Before Deno 2.0, this condition was covered by the PermissionDenied error.