Skip to main content

Class: HTTPError

Hierarchy

Implements

Constructors

constructor

new HTTPError(code, message?, payload?)

Parameters

NameType
codestring | number
message?string
payloadAnonymousObject<any>

Overrides

DefaultBasicError.constructor

Defined in

onekijs/packages/onekijs-framework/src/core/HTTPError.ts:73

Properties

code

code: string | number

Implementation of

BasicError.code

Inherited from

DefaultBasicError.code

Defined in

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


message

message: string

Implementation of

BasicError.message

Inherited from

DefaultBasicError.message

Defined in

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


name

name: string

Implementation of

BasicError.name

Inherited from

DefaultBasicError.name

Defined in

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


payload

payload: AnonymousObject<any>

Implementation of

BasicError.payload

Inherited from

DefaultBasicError.payload

Defined in

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


stack

Optional stack: string

Implementation of

BasicError.stack

Inherited from

DefaultBasicError.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

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

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

DefaultBasicError.captureStackTrace

Defined in

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