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().
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ShoehiveError(
options):ShoehiveError
Defined in: core/errors.ts:54
Parameters
Section titled “Parameters”options
Section titled “options”cause?
Section titled “cause?”unknown
string
details?
Section titled “details?”message?
Section titled “message?”string
source?
Section titled “source?”"game" | "shoehive"
Returns
Section titled “Returns”ShoehiveError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycode:string
Defined in: core/errors.ts:50
details
Section titled “details”
readonlydetails:Json|undefined
Defined in: core/errors.ts:52
readonlyname:"ShoehiveError"='ShoehiveError'
Defined in: core/errors.ts:49
Overrides
Section titled “Overrides”Error.name
source
Section titled “source”
readonlysource:"game"|"shoehive"
Defined in: core/errors.ts:51
Methods
Section titled “Methods”toJSON()
Section titled “toJSON()”toJSON():
object
Defined in: core/errors.ts:70
The wire shape of this error (protocol section 7).
Returns
Section titled “Returns”object
code:
string
details?
Section titled “details?”
optionaldetails?:Json
message
Section titled “message”message:
string
source
Section titled “source”source:
"game"|"shoehive"
