amber/deno/error
Types
pub type Error {
AddrInUse
AddrNotAvailable
AlreadyExists
BadResource
BrokenPipe
Busy
ConnectionAborted
ConnectionRefused
ConnectionReset
FilesystemLoop
Http
Interrupted
InvalidData
IsADirectory
NetworkUnreachable
NotADirectory
NotCapable
NotConnected
NotFound
NotSupported
PermissionDenied
TimedOut
UnexpectedEof
WouldBlock
WriteZero
Other(String)
}
Constructors
-
AddrInUse
Raised when attempting to open a server listener on an address and port that already has a listener.
-
AddrNotAvailable
Raised when the underlying operating system reports an EADDRNOTAVAIL error.
-
AlreadyExists
Raised when trying to create a resource, like a file, that already exists.
-
BadResource
The underlying IO resource is invalid or closed, and so the operation could not be performed.
-
BrokenPipe
Raised when trying to write to a resource and a broken pipe error occurs. This can happen when trying to write directly to stdout or stderr and the operating system is unable to pipe the output for a reason external to the Deno runtime.
-
Busy
Raised when the underlying IO resource is not available because it is being awaited on in another block of code.
-
ConnectionAborted
Raised when the underlying operating system reports an ECONNABORTED error.
-
ConnectionRefused
Raised when the underlying operating system reports that a connection to a resource is refused.
-
ConnectionReset
Raised when the underlying operating system reports that a connection has been reset. With network servers, it can be a normal occurrence where a client will abort a connection instead of properly shutting it down.
-
FilesystemLoop
Raised when too many symbolic links were encountered when resolving the filename.
-
Http
Raised in situations where when attempting to load a dynamic import, too many redirects were encountered.
-
Interrupted
Raised when the underlying operating system reports an EINTR error. In many cases, this underlying IO error will be handled internally within Deno, or result in an @{link BadResource} error instead.
-
InvalidData
Raised when an operation to returns data that is invalid for the operation being performed.
-
IsADirectory
Raised when trying to open, create or write to a directory.
-
NetworkUnreachable
Raised when performing a socket operation but the remote host is not reachable.
-
NotADirectory
Raised when trying to perform an operation on a path that is not a directory, when directory is required.
-
NotCapable
Raised when trying to perform an operation while the relevant Deno permission (like –allow-read) has not been granted.
-
NotConnected
Raised when the underlying operating system reports an ENOTCONN error.
-
NotFound
Raised when the underlying operating system indicates that the file was not found.
-
NotSupported
Raised when the underlying Deno API is asked to perform a function that is not currently supported.
-
PermissionDenied
Raised when the underlying operating system indicates the current user which the Deno process is running under does not have the appropriate permissions to a file or resource.
-
TimedOut
Raised when the underlying operating system reports that an I/O operation has timed out (ETIMEDOUT).
-
UnexpectedEof
Raised when attempting to read bytes from a resource, but the EOF was unexpectedly encountered.
-
WouldBlock
Raised when the underlying operating system would need to block to complete but an asynchronous (non-blocking) API is used.
-
WriteZero
Raised when expecting to write to a IO buffer resulted in zero bytes being written.
-
Other(String)