Enum

error-code

Error codes.

enum error-code {
  unknown,
  access-denied,
  not-supported,
  invalid-argument,
  out-of-memory,
  timeout,
  concurrency-conflict,
  not-in-progress,
  would-block,
  invalid-state,
  new-socket-limit,
  address-not-bindable,
  address-in-use,
  remote-unreachable,
  connection-refused,
  connection-reset,
  connection-aborted,
  datagram-too-large,
  name-unresolvable,
  temporary-resolver-failure,
  permanent-resolver-failure,
}

Cases

CaseDescription
unknownUnknown error
access-deniedAccess denied.
not-supportedThe operation is not supported.
invalid-argumentOne of the arguments is invalid.
out-of-memoryNot enough memory to complete the operation.
timeoutThe operation timed out before it could finish completely.
concurrency-conflictThis operation is incompatible with another asynchronous operation that is already in progress.
not-in-progressTrying to finish an asynchronous operation that:
would-blockThe operation has been aborted because it could not be completed immediately.
invalid-stateThe operation is not valid in the socket's current state.
new-socket-limitA new socket resource could not be created because of a system limit.
address-not-bindableA bind operation failed because the provided address is not an address that the network can bind to.
address-in-useA bind operation failed because the provided address is already in use or because there are no ephemeral ports available.
remote-unreachableThe remote address is not reachable
connection-refusedThe TCP connection was forcefully rejected
connection-resetThe TCP connection was reset.
connection-abortedA TCP connection was aborted.
datagram-too-largeThe size of a datagram sent to a UDP socket exceeded the maximum supported size.
name-unresolvableName does not exist or has no suitable associated IP addresses.
temporary-resolver-failureA temporary failure in name resolution occurred.
permanent-resolver-failureA permanent failure in name resolution occurred.