Class: DefaultBasicError
Hierarchy
Error↳
DefaultBasicError↳↳
HTTPError
Implements
Constructors
constructor
• new DefaultBasicError(message, code?, payload?)
Parameters
| Name | Type |
|---|---|
message | string |
code? | string | number |
payload | AnonymousObject<any> |
Overrides
Error.constructor
Defined in
onekijs/packages/onekijs-framework/src/core/BasicError.ts:7
Properties
code
• code: string | number
Implementation of
Defined in
onekijs/packages/onekijs-framework/src/core/BasicError.ts:5
message
• message: string
Implementation of
Inherited from
Error.message
Defined in
oneki.github.io/node_modules/typescript/lib/lib.es5.d.ts:974
name
• name: string
Implementation of
Inherited from
Error.name
Defined in
oneki.github.io/node_modules/typescript/lib/lib.es5.d.ts:973
payload
• payload: AnonymousObject<any>
Implementation of
Defined in
onekijs/packages/onekijs-framework/src/core/BasicError.ts:6
stack
• Optional stack: string
Implementation of
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
| Name | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
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
| Name | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
onekijs/node_modules/@types/node/globals.d.ts:4