Class: GhostlyError
ghostly-runtime.GhostlyError
An Error class that can propage an extra data member back to the controlling application/driver.
Hierarchyβ
Error
β³
GhostlyError
Constructorsβ
constructorβ
β’ new GhostlyError(message
, data?
)
Parametersβ
Name | Type |
---|---|
message | string |
data? | null | string | object |
Overridesβ
Error.constructor
Defined inβ
ghostly-runtime/src/types.ts:115
Propertiesβ
dataβ
β’ Optional
data: null
| string
| object
messageβ
β’ message: string
Inherited fromβ
Error.message
Defined inβ
website/node_modules/.pnpm/typescript@4.5.5/node_modules/typescript/lib/lib.es5.d.ts:1023
nameβ
β’ name: string
Inherited fromβ
Error.name
Defined inβ
website/node_modules/.pnpm/typescript@4.5.5/node_modules/typescript/lib/lib.es5.d.ts:1022
stackβ
β’ Optional
stack: string
Inherited fromβ
Error.stack
Defined inβ
website/node_modules/.pnpm/typescript@4.5.5/node_modules/typescript/lib/lib.es5.d.ts:1024
Methodsβ
toStringβ
βΈ toString(): string
Returnsβ
string