ErrorCode

Everything that can go wrong, as a closed set.

Callers branch on the code. They never parse a message, and nothing outside this set ever reaches them: a browser failure stays a browser failure and does not become an app crash.

Entries

Link copied to clipboard

A stage exceeded its ceiling. Distinct from CANCELLED.

Link copied to clipboard

The document could not be loaded: transport failure, refused connection, error status.

Link copied to clipboard

The renderer process died. The session is unusable and must be rebuilt.

Link copied to clipboard

The control endpoint answered with something unusable, or stopped answering.

Link copied to clipboard

A selector matched nothing before its deadline. Distinct from TIMEOUT.

Link copied to clipboard

The session is closed. Every call on it fails this way.

Link copied to clipboard

Refused rather than risking an out-of-memory kill.

Link copied to clipboard

A request or navigation was blocked by caller-configured rules.

Link copied to clipboard

A navigation resolved to an address the host app did not allow.

Link copied to clipboard

The calling coroutine was cancelled. Never reported as TIMEOUT.

Link copied to clipboard

This device's WebView cannot do what was asked. Reported immediately, never as a timeout.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): ErrorCode

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.