1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-22 06:09:25 -05:00

fix: don't statically type name on Deno.errors (#11715)

This commit is contained in:
Luca Casonato 2021-08-15 15:17:07 +02:00 committed by GitHub
parent d1fe03d677
commit 02b23e0575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,60 +67,24 @@ declare interface PerformanceMeasureOptions {
declare namespace Deno { declare namespace Deno {
/** A set of error constructors that are raised by Deno APIs. */ /** A set of error constructors that are raised by Deno APIs. */
export namespace errors { export namespace errors {
export class NotFound extends Error { export class NotFound extends Error {}
name: "NotFound"; export class PermissionDenied extends Error {}
} export class ConnectionRefused extends Error {}
export class PermissionDenied extends Error { export class ConnectionReset extends Error {}
name: "PermissionDenied"; export class ConnectionAborted extends Error {}
} export class NotConnected extends Error {}
export class ConnectionRefused extends Error { export class AddrInUse extends Error {}
name: "ConnectionRefused"; export class AddrNotAvailable extends Error {}
} export class BrokenPipe extends Error {}
export class ConnectionReset extends Error { export class AlreadyExists extends Error {}
name: "ConnectionReset"; export class InvalidData extends Error {}
} export class TimedOut extends Error {}
export class ConnectionAborted extends Error { export class Interrupted extends Error {}
name: "ConnectionAborted"; export class WriteZero extends Error {}
} export class UnexpectedEof extends Error {}
export class NotConnected extends Error { export class BadResource extends Error {}
name: "NotConnected"; export class Http extends Error {}
} export class Busy extends Error {}
export class AddrInUse extends Error {
name: "AddrInUse";
}
export class AddrNotAvailable extends Error {
name: "AddrNotAvailable";
}
export class BrokenPipe extends Error {
name: "BrokenPipe";
}
export class AlreadyExists extends Error {
name: "AlreadyExists";
}
export class InvalidData extends Error {
name: "InvalidData";
}
export class TimedOut extends Error {
name: "TimedOut";
}
export class Interrupted extends Error {
name: "Interrupted";
}
export class WriteZero extends Error {
name: "WriteZero";
}
export class UnexpectedEof extends Error {
name: "UnexpectedEof";
}
export class BadResource extends Error {
name: "BadResource";
}
export class Http extends Error {
name: "Http";
}
export class Busy extends Error {
name: "Busy";
}
} }
/** The current process id of the runtime. */ /** The current process id of the runtime. */