Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/errors.ts>ErrorKind

A modern runtime for JavaScript and TypeScript.
Go to Latest
enum ErrorKind
import { ErrorKind } from "https://deno.land/x/deno@v0.30.0/cli/js/errors.ts";

Members

AddrInUse = 7
AddrNotAvailable = 8
AlreadyExists = 10
BadResource = 19
BrokenPipe = 9
CommandFailed = 20
ConnectionAborted = 5
ConnectionRefused = 3
ConnectionReset = 4
DataCloneError = 52

TODO this is a DomException type, and should be moved out of here when possible

Diagnostic = 49
EmptyHost = 21
HttpCanceled = 33
HttpClosed = 32
HttpOther = 35
HttpParse = 34
HttpUser = 31
IdnaError = 22
ImportMapError = 44
ImportPrefixMissing = 46
Interrupted = 15
InvalidData = 13
InvalidDomainCharacter = 26
InvalidInput = 12
InvalidIpv4Address = 24
InvalidIpv6Address = 25
InvalidPath = 45
InvalidPort = 23
InvalidSeekMode = 38
InvalidUri = 37
JSError = 50
NoAsyncSupport = 42
NoError = 0
NoSyncSupport = 43
NotConnected = 6
NotFound = 1
OpNotAvailable = 39
Other = 17
Overflow = 30
PermissionDenied = 2
RelativeUrlWithCannotBeABaseBase = 28
RelativeUrlWithoutBase = 27
SetHostOnCannotBeABaseUrl = 29
TimedOut = 14
TooLarge = 36
TooManyRedirects = 48
TypeError = 51
UnexpectedEof = 18
UnixError = 41
UnsupportedFetchScheme = 47
WorkerInitFailed = 40
WouldBlock = 11
WriteZero = 16