BridgeErrorCode enum

Wire error codes. Envelope-level codes (proto, badToken, badFrame, badOp) travel on error frames; the rest are browser-op results carried inside browserRes payloads.

Inheritance
Available extensions

Values

proto → const BridgeErrorCode

Envelope/hello protocol-version mismatch (reply + close).

const BridgeErrorCode('proto')
badToken → const BridgeErrorCode

Pairing token wrong or absent (reply + close 4401).

const BridgeErrorCode('bad_token')
badFrame → const BridgeErrorCode

Frame is not a JSON object, or misses v/id/op.

const BridgeErrorCode('bad_frame')
badOp → const BridgeErrorCode

Well-formed frame with an op this peer does not handle.

const BridgeErrorCode('bad_op')
timeout → const BridgeErrorCode

Browser op gave up (dispatch timeout, page wait elapsed).

const BridgeErrorCode('timeout')
denied → const BridgeErrorCode

Browser op refused by policy.

const BridgeErrorCode('denied')
noTarget → const BridgeErrorCode

No connected extension to route the request to.

const BridgeErrorCode('no_target')
badArgs → const BridgeErrorCode

Browser op called with missing/invalid args.

const BridgeErrorCode('bad_args')
nodeVanished → const BridgeErrorCode

Selector matched nothing (vanished between read and act).

const BridgeErrorCode('node_vanished')
noTab → const BridgeErrorCode

No tab available for the op.

const BridgeErrorCode('no_tab')
restrictedPage → const BridgeErrorCode

chrome://, Web Store, PDF — not automatable.

const BridgeErrorCode('restricted_page')
csp → const BridgeErrorCode

Page CSP blocked the injection.

const BridgeErrorCode('csp')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
wire → String
The exact string on the wire (snake_case, contract-pinned).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromWire(String wire) → BridgeErrorCode?
Parses a wire code; null when the peer invented one.

Constants

values → const List<BridgeErrorCode>
A constant List of the values in this enum, in order of their declaration.