Skip to content

Documentation / @etherfold/browser / HostSettingsConflictError

Class: HostSettingsConflictError ​

Defined in: packages/browser/src/host/settings.ts:69

A TAB'S CONNECT WAS REFUSED because it disagrees with what the host already has.

Carries fields, the names that disagreed, so an app branches on them rather than on the sentence. It crosses the port as its name and its fields (see errors.ts), which is how a tab reads it.

Nothing the refused connect carried was applied: a host told two different values has no rule for choosing, and a merge that took half of a connect would leave neither side knowing what the host is folding.

Extends ​

  • Error

Constructors ​

Constructor ​

new HostSettingsConflictError(fields, why): HostSettingsConflictError

Defined in: packages/browser/src/host/settings.ts:72

Parameters ​

fields ​

readonly HostSettingName[]

why ​

string

Returns ​

HostSettingsConflictError

Overrides ​

Error.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 ​

Error.cause


fields ​

readonly fields: readonly HostSettingName[]

Defined in: packages/browser/src/host/settings.ts:70


message ​

message: string

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

Inherited from ​

Error.message


name ​

name: string

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

Inherited from ​

Error.name


stack? ​

optional stack?: string

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

Inherited from ​

Error.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 ​

Error.isError