Skip to main content

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​

NameType
messagestring
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​
NameType
errError
stackTracesCallSite[]
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​

NameType
targetObjectObject
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