Skip to content

ShoehiveError

Defined in: core/errors.ts:48

The one error type Shoehive raises and sends to clients. source tells apart codes raised by Shoehive from codes a game raised with reject().

  • Error

new ShoehiveError(options): ShoehiveError

Defined in: core/errors.ts:54

unknown

string

Json

string

"game" | "shoehive"

ShoehiveError

Error.constructor

readonly code: string

Defined in: core/errors.ts:50


readonly details: Json | undefined

Defined in: core/errors.ts:52


readonly name: "ShoehiveError" = 'ShoehiveError'

Defined in: core/errors.ts:49

Error.name


readonly source: "game" | "shoehive"

Defined in: core/errors.ts:51

toJSON(): object

Defined in: core/errors.ts:70

The wire shape of this error (protocol section 7).

object

code: string

optional details?: Json

message: string

source: "game" | "shoehive"