Skip to content

Documentation / @etherfold/browser / UnclonableValueError

Class: UnclonableValueError ​

Defined in: packages/browser/src/host/clone.ts:41

A value the port refuses to carry, NAMING WHERE IT WAS.

A TypeError because it is a fact about the value's type rather than about the port's state: the same value is refused identically on every attempt, and no retry, reconnection or restart makes it crossable.

Extends ​

  • TypeError

Constructors ​

Constructor ​

new UnclonableValueError(path, reason): UnclonableValueError

Defined in: packages/browser/src/host/clone.ts:45

Parameters ​

path ​

string

reason ​

string

Returns ​

UnclonableValueError

Overrides ​

TypeError.constructor

Properties ​

cause? ​

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from ​

TypeError.cause


message ​

message: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from ​

TypeError.message


name ​

name: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074

Inherited from ​

TypeError.name


path ​

readonly path: string

Defined in: packages/browser/src/host/clone.ts:43

The path to the offending value inside the message, e.g. progress.response.rows[3].read.


stack? ​

optional stack?: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from ​

TypeError.stack

Methods ​

isError() ​

static isError(error): error is Error

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.esnext.error.d.ts:21

Indicates whether the argument provided is a built-in Error instance or not.

Parameters ​

error ​

unknown

Returns ​

error is Error

Inherited from ​

TypeError.isError