Skip to content
docs

NetworkError

Defined in: table.ts:68

Thrown by NetworksTable writes: a built-in network cannot be removed or replaced, the network is unknown, a URL breaks the policy, the network is invalid, or the last RPC of a custom network would be removed; and by the sync endpoint readers before load() (not-loaded).

  • Error

new NetworkError(code, message, reason?): NetworkError

Defined in: table.ts:69

"builtin" | "unknown-network" | "url-policy" | "bad-network" | "last-rpc" | "not-loaded"

string

UrlPolicyReason

NetworkError

Error.constructor

readonly code: "builtin" | "unknown-network" | "url-policy" | "bad-network" | "last-rpc" | "not-loaded"

Defined in: table.ts:69


readonly optional reason?: UrlPolicyReason

Defined in: table.ts:69