Class: HTTPError
Hierarchy
↳
HTTPError
Implements
Constructors
constructor
• new HTTPError(code, message?, payload?)
Parameters
| Name | Type |
|---|---|
code | string | number |
message? | string |
payload | AnonymousObject<any> |
Overrides
Defined in
onekijs/packages/onekijs-framework/src/core/HTTPError.ts:73
Properties
code
• code: string | number
Implementation of
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/BasicError.ts:5
message
• message: string
Implementation of
Inherited from
Defined in
oneki.github.io/node_modules/typescript/lib/lib.es5.d.ts:974
name
• name: string
Implementation of
Inherited from
Defined in
oneki.github.io/node_modules/typescript/lib/lib.es5.d.ts:973
payload
• payload: AnonymousObject<any>
Implementation of
Inherited from
Defined in
onekijs/packages/onekijs-framework/src/core/BasicError.ts:6
stack
• Optional stack: string
Implementation of
Inherited from
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
DefaultBasicError.prepareStackTrace
Defined in
onekijs/node_modules/@types/node/globals.d.ts:11
stackTraceLimit
▪ Static stackTraceLimit: number
Inherited from
DefaultBasicError.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
DefaultBasicError.captureStackTrace
Defined in
onekijs/node_modules/@types/node/globals.d.ts:4