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.