Skip to main content

Class: DefaultBasicError

Hierarchy​

Implements​

Constructors​

constructor​

• new DefaultBasicError(message, code?, payload?)

Parameters​

NameType
messagestring
code?string | number
payloadAnonymousObject<any>

Overrides​

Error.constructor

Defined in​

onekijs/packages/onekijs-framework/src/core/BasicError.ts:7

Properties​

code​

• code: string | number

Implementation of​

BasicError.code

Defined in​

onekijs/packages/onekijs-framework/src/core/BasicError.ts:5


message​

• message: string

Implementation of​

BasicError.message

Inherited from​

Error.message

Defined in​

oneki.github.io/node_modules/typescript/lib/lib.es5.d.ts:974


name​

• name: string

Implementation of​

BasicError.name

Inherited from​

Error.name

Defined in​

oneki.github.io/node_modules/typescript/lib/lib.es5.d.ts:973


payload​

• payload: AnonymousObject<any>

Implementation of​

BasicError.payload

Defined in​

onekijs/packages/onekijs-framework/src/core/BasicError.ts:6


stack​

• Optional stack: string

Implementation of​

BasicError.stack

Inherited from​

Error.stack

Defined in​

oneki.github.io/node_modules/typescript/lib/lib.es5.d.ts:975


prepareStackTrace​

▪ Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any

Type declaration​

▸ (err, stackTraces): any

Optional override for formatting stack traces

Parameters​
NameType
errError
stackTracesCallSite[]
Returns​

any

Inherited from​

Error.prepareStackTrace

Defined in​

onekijs/node_modules/@types/node/globals.d.ts:11


stackTraceLimit​

▪ Static stackTraceLimit: number

Inherited from​

Error.stackTraceLimit

Defined in​

onekijs/node_modules/@types/node/globals.d.ts:13

Methods​

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​

onekijs/node_modules/@types/node/globals.d.ts:4