deno.land / x / deno@v1.28.2 / runtime / js / 01_errors.js
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license."use strict";
((window) => { const core = window.Deno.core; const { Error } = window.__bootstrap.primordials; const { BadResource, Interrupted } = core;
class NotFound extends Error { constructor(msg) { super(msg); this.name = "NotFound"; } }
class PermissionDenied extends Error { constructor(msg) { super(msg); this.name = "PermissionDenied"; } }
class ConnectionRefused extends Error { constructor(msg) { super(msg); this.name = "ConnectionRefused"; } }
class ConnectionReset extends Error { constructor(msg) { super(msg); this.name = "ConnectionReset"; } }
class ConnectionAborted extends Error { constructor(msg) { super(msg); this.name = "ConnectionAborted"; } }
class NotConnected extends Error { constructor(msg) { super(msg); this.name = "NotConnected"; } }
class AddrInUse extends Error { constructor(msg) { super(msg); this.name = "AddrInUse"; } }
class AddrNotAvailable extends Error { constructor(msg) { super(msg); this.name = "AddrNotAvailable"; } }
class BrokenPipe extends Error { constructor(msg) { super(msg); this.name = "BrokenPipe"; } }
class AlreadyExists extends Error { constructor(msg) { super(msg); this.name = "AlreadyExists"; } }
class InvalidData extends Error { constructor(msg) { super(msg); this.name = "InvalidData"; } }
class TimedOut extends Error { constructor(msg) { super(msg); this.name = "TimedOut"; } }
class WriteZero extends Error { constructor(msg) { super(msg); this.name = "WriteZero"; } }
class UnexpectedEof extends Error { constructor(msg) { super(msg); this.name = "UnexpectedEof"; } }
class Http extends Error { constructor(msg) { super(msg); this.name = "Http"; } }
class Busy extends Error { constructor(msg) { super(msg); this.name = "Busy"; } }
class NotSupported extends Error { constructor(msg) { super(msg); this.name = "NotSupported"; } }
const errors = { NotFound, PermissionDenied, ConnectionRefused, ConnectionReset, ConnectionAborted, NotConnected, AddrInUse, AddrNotAvailable, BrokenPipe, AlreadyExists, InvalidData, TimedOut, Interrupted, WriteZero, UnexpectedEof, BadResource, Http, Busy, NotSupported, };
window.__bootstrap.errors = { errors, };})(this);
Version Info