diff --git a/cli/js/errors.ts b/cli/js/errors.ts index 44f35b4383..6aced228a3 100644 --- a/cli/js/errors.ts +++ b/cli/js/errors.ts @@ -154,12 +154,6 @@ class WriteZero extends Error { this.name = "WriteZero"; } } -class Other extends Error { - constructor(msg: string) { - super(msg); - this.name = "Other"; - } -} class UnexpectedEof extends Error { constructor(msg: string) { super(msg); @@ -194,7 +188,6 @@ export const errors = { TimedOut: TimedOut, Interrupted: Interrupted, WriteZero: WriteZero, - Other: Other, UnexpectedEof: UnexpectedEof, BadResource: BadResource, Http: Http diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts index 4a13bafb6d..9a339f3d2f 100644 --- a/cli/js/lib.deno.ns.d.ts +++ b/cli/js/lib.deno.ns.d.ts @@ -1317,7 +1317,6 @@ declare namespace Deno { TimedOut: ErrorConstructor; Interrupted: ErrorConstructor; WriteZero: ErrorConstructor; - Other: ErrorConstructor; UnexpectedEof: ErrorConstructor; BadResource: ErrorConstructor; Http: ErrorConstructor;