Skip to content

@ue-too/being-portable / RuntimeError

Type Alias: RuntimeError ​

RuntimeError = object

Defined in: being-portable/src/errors.ts:77

A failure reported to the host's onError. The machine tree has already been rolled back when this is reported.

Properties ​

code ​

readonly code: RuntimeErrorCode

Defined in: being-portable/src/errors.ts:78


effectsCalled ​

readonly effectsCalled: readonly string[]

Defined in: being-portable/src/errors.ts:85

Effects that ran before the failure. They are not undone.


event ​

readonly event: string | null

Defined in: being-portable/src/errors.ts:83

The event being handled, or null for start, reset and wrapup.


message ​

readonly message: string

Defined in: being-portable/src/errors.ts:79


path ​

readonly path: string

Defined in: being-portable/src/errors.ts:81

JSON path of the statement or guard that failed.