Class: GhostlyError
ghostly-engine.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/build/src/types.d.ts:95
Propertiesβ
dataβ
β’ Optional data: null | string | object
Defined inβ
ghostly-runtime/build/src/types.d.ts:94
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
prepareStackTraceβ
βͺ Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any
Type declarationβ
βΈ (err, stackTraces): any
Optional override for formatting stack traces
see https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces
Parametersβ
| Name | Type | 
|---|---|
| err | Error | 
| stackTraces | CallSite[] | 
Returnsβ
any
Inherited fromβ
Error.prepareStackTrace
Defined inβ
node_modules/.pnpm/@types+node@12.20.37/node_modules/@types/node/globals.d.ts:140
stackTraceLimitβ
βͺ Static stackTraceLimit: number
Inherited fromβ
Error.stackTraceLimit
Defined inβ
node_modules/.pnpm/@types+node@12.20.37/node_modules/@types/node/globals.d.ts:142
Methodsβ
toStringβ
βΈ toString(): string
Returnsβ
string
Defined inβ
ghostly-runtime/build/src/types.d.ts:96
captureStackTraceβ
βΈ Static captureStackTrace(targetObject, constructorOpt?): void
Create .stack property on a target object
Parametersβ
| Name | Type | 
|---|---|
| targetObject | Object | 
| constructorOpt? | Function | 
Returnsβ
void
Inherited fromβ
Error.captureStackTrace
Defined inβ
node_modules/.pnpm/@types+node@12.20.37/node_modules/@types/node/globals.d.ts:133