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
| Case | Description |
|---|---|
| unknown | Unknown error |
| access-denied | Access denied. |
| not-supported | The operation is not supported. |
| invalid-argument | One of the arguments is invalid. |
| out-of-memory | Not enough memory to complete the operation. |
| timeout | The operation timed out before it could finish completely. |
| concurrency-conflict | This operation is incompatible with another asynchronous operation that is already in progress. |
| not-in-progress | Trying to finish an asynchronous operation that: |
| would-block | The operation has been aborted because it could not be completed immediately. |
| invalid-state | The operation is not valid in the socket's current state. |
| new-socket-limit | A new socket resource could not be created because of a system limit. |
| address-not-bindable | A bind operation failed because the provided address is not an address that the network can bind to. |
| address-in-use | A bind operation failed because the provided address is already in use or because there are no ephemeral ports available. |
| remote-unreachable | The remote address is not reachable |
| connection-refused | The TCP connection was forcefully rejected |
| connection-reset | The TCP connection was reset. |
| connection-aborted | A TCP connection was aborted. |
| datagram-too-large | The size of a datagram sent to a UDP socket exceeded the maximum supported size. |
| name-unresolvable | Name does not exist or has no suitable associated IP addresses. |
| temporary-resolver-failure | A temporary failure in name resolution occurred. |
| permanent-resolver-failure | A permanent failure in name resolution occurred. |