HTTPError
__type(err: Error,stackTraces: CallSite[]): any
Properties
(Mandatory properties are in bold)Properties | Type | Description |
---|---|---|
captureStackTrace | captureStackTrace(targetObject: object,constructorOpt: Function): void | Create .stack property on a target object |
code | string | number | |
constructor | new HTTPError(code: string | number,message: string,payload: AnonymousObject<any>) | |
message | string | |
name | string | |
of | of(error: unknown): BasicError | |
payload | AnonymousObject<any> | |
stackTraceLimit | number |
Additional properties for advanced use cases
Properties | Type | Description |
---|---|---|
cause | unknown | |
prepareStackTrace | ||
stack | string |