diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-03-04 13:18:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 13:18:32 -0500 |
commit | a1b98e9e6a204c3d522593cfb8593be5855d6615 (patch) | |
tree | f5fcc81235155b2079b6ef9f4b2ea8f7b0855859 | |
parent | 8d96dffa410a149d0fff6115bd97f41fc1fe7459 (diff) |
Remove Deno.errors.Other (#4249)
-rw-r--r-- | cli/js/errors.ts | 7 | ||||
-rw-r--r-- | cli/js/lib.deno.ns.d.ts | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/cli/js/errors.ts b/cli/js/errors.ts index 44f35b438..6aced228a 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 4a13bafb6..9a339f3d2 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; |