Skip to content

Documentation / @etherfold/browser / errorFromPort

Function: errorFromPort() ​

errorFromPort(error): Error

Defined in: packages/browser/src/host/errors.ts:89

The failure again, as something a tab can throw and a catch can read.

The name is restored onto a plain Error rather than a class being guessed at: a constructor this side has no reference to cannot be rebuilt, and inventing a subclass per crossing would be a second vocabulary for the same failures.

Parameters ​

error ​

PortError

Returns ​

Error