elections-cpl.api.hscc.bdpa.org • Docs
elections-cpl.api.hscc.bdpa.org / src/error / HttpError
Represents a generic HTTP or related failure.
new HttpError(
error
?):HttpError
Represents a generic HTTP or related failure.
• error?: string
node_modules/named-app-errors/dist/modules/error/http/http.d.ts:19
new HttpError(
res
?,error
?):HttpError
Represents a generic HTTP or related failure.
• res?: ServerResponseLike
• error?: string
node_modules/named-app-errors/dist/modules/error/http/http.d.ts:23
new HttpError(
res
,error
,message
):HttpError
This constructor syntax is used by subclasses when calling this constructor
via super
.
• res: ServerResponseLike
• error: string
• message: string
AppError.constructor
node_modules/named-app-errors/dist/modules/error/http/http.d.ts:28
optional
cause:unknown
node_modules/typescript/lib/lib.es2022.error.d.ts:24
message:
string
node_modules/typescript/lib/lib.es5.d.ts:1077
name:
string
node_modules/typescript/lib/lib.es5.d.ts:1076
readonly
res:undefined
|string
|ServerResponseLike
node_modules/named-app-errors/dist/modules/error/http/http.d.ts:15
optional
stack:string
node_modules/typescript/lib/lib.es5.d.ts:1078
static
optional
prepareStackTrace: (err
,stackTraces
) =>any
Optional override for formatting stack traces
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
• err: Error
• stackTraces: CallSite
[]
any
node_modules/@types/node/globals.d.ts:28
static
stackTraceLimit:number
node_modules/@types/node/globals.d.ts:30
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
• targetObject: object
• constructorOpt?: Function
void
node_modules/@types/node/globals.d.ts:21