1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00

Remove Deno.errors.Other (#4249)

This commit is contained in:
Ryan Dahl 2020-03-04 13:18:32 -05:00 committed by GitHub
parent 8d96dffa41
commit a1b98e9e6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View file

@ -154,12 +154,6 @@ class WriteZero extends Error {
this.name = "WriteZero"; this.name = "WriteZero";
} }
} }
class Other extends Error {
constructor(msg: string) {
super(msg);
this.name = "Other";
}
}
class UnexpectedEof extends Error { class UnexpectedEof extends Error {
constructor(msg: string) { constructor(msg: string) {
super(msg); super(msg);
@ -194,7 +188,6 @@ export const errors = {
TimedOut: TimedOut, TimedOut: TimedOut,
Interrupted: Interrupted, Interrupted: Interrupted,
WriteZero: WriteZero, WriteZero: WriteZero,
Other: Other,
UnexpectedEof: UnexpectedEof, UnexpectedEof: UnexpectedEof,
BadResource: BadResource, BadResource: BadResource,
Http: Http Http: Http

View file

@ -1317,7 +1317,6 @@ declare namespace Deno {
TimedOut: ErrorConstructor; TimedOut: ErrorConstructor;
Interrupted: ErrorConstructor; Interrupted: ErrorConstructor;
WriteZero: ErrorConstructor; WriteZero: ErrorConstructor;
Other: ErrorConstructor;
UnexpectedEof: ErrorConstructor; UnexpectedEof: ErrorConstructor;
BadResource: ErrorConstructor; BadResource: ErrorConstructor;
Http: ErrorConstructor; Http: ErrorConstructor;