Skip to main content

BadRequest

Api Code Documentation / Exports / http_errors/bad_request / BadRequest

http_errors/bad_request.BadRequest

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BadRequest(info)

Parameters

NameType
infoInfo

Overrides

VError.constructor

Defined in

src/http_errors/bad_request.ts:13

Properties

cause

cause: () => undefined | Error

Type declaration

▸ (): undefined | Error

Returns

undefined | Error

Inherited from

VError.cause

Defined in

node_modules/@types/verror/index.d.ts:26


message

message: string

Inherited from

VError.message

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1068


name

name: string

Inherited from

VError.name

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1067


stack

Optional stack: string

Inherited from

VError.stack

Defined in

node_modules/typescript/lib/lib.es5.d.ts:1069


VError

Static VError: typeof VError

Inherited from

VError.VError

Defined in

node_modules/@types/verror/index.d.ts:16


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

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Inherited from

VError.prepareStackTrace

Defined in

node_modules/@types/node/globals.d.ts:11


stackTraceLimit

Static stackTraceLimit: number

Inherited from

VError.stackTraceLimit

Defined in

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

VError.captureStackTrace

Defined in

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


cause

Static cause(err): null | Error

Parameters

NameType
errError

Returns

null | Error

Inherited from

VError.cause

Defined in

node_modules/@types/verror/index.d.ts:18


errorForEach

Static errorForEach(err, func): void

Parameters

NameType
errError
func(err: Error) => void

Returns

void

Inherited from

VError.errorForEach

Defined in

node_modules/@types/verror/index.d.ts:24


errorFromList

Static errorFromList<T>(errors): null | T | MultiError

Type parameters

NameType
Textends Error

Parameters

NameType
errorsT[]

Returns

null | T | MultiError

Inherited from

VError.errorFromList

Defined in

node_modules/@types/verror/index.d.ts:23


findCauseByName

Static findCauseByName(err, name): null | Error

Parameters

NameType
errError
namestring

Returns

null | Error

Inherited from

VError.findCauseByName

Defined in

node_modules/@types/verror/index.d.ts:21


fullStack

Static fullStack(err): string

Parameters

NameType
errError

Returns

string

Inherited from

VError.fullStack

Defined in

node_modules/@types/verror/index.d.ts:20


hasCauseWithName

Static hasCauseWithName(err, name): boolean

Parameters

NameType
errError
namestring

Returns

boolean

Inherited from

VError.hasCauseWithName

Defined in

node_modules/@types/verror/index.d.ts:22


info

Static info(err): Info

Parameters

NameType
errError

Returns

Info

Inherited from

VError.info

Defined in

node_modules/@types/verror/index.d.ts:19