Перейти до основного вмісту

Class: GeneralBadRequestException

exceptions/src.GeneralBadRequestException

Extends​

Constructors​

new GeneralBadRequestException(errors, detail, errorCode, rootCause)​

new GeneralBadRequestException(errors, detail?, errorCode?, rootCause?): GeneralBadRequestException

Parameters​

▪ errors: ValidationError | ValidationError[]

▪ detail?: string

▪ errorCode?: string

▪ rootCause?: unknown

Returns​

GeneralBadRequestException

Overrides​

I18nValidationException.constructor

Source​

libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:7

Properties​

cause​

cause: unknown

Inherited from​

I18nValidationException.cause

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:58


detail​

detail?: string

Source​

libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:9


errorCode​

errorCode?: string

Source​

libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:10


errors​

errors: ValidationError[]

Inherited from​

I18nValidationException.errors

Source​

libs/i18n/src/lib/interfaces/i18n-validation-error.interface.ts:7


message​

message: string

Inherited from​

I18nValidationException.message

Source​

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


name​

name: string

Inherited from​

I18nValidationException.name

Source​

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


rootCause​

rootCause?: unknown

Source​

libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:11


stack​

stack?: string

Inherited from​

I18nValidationException.stack

Source​

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


prepareStackTrace​

static prepareStackTrace?: (err, stackTraces) => any

Optional override for formatting stack traces

Parameters​

▪ err: Error

▪ stackTraces: CallSite[]

Returns​

any

See​

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

Inherited from​

I18nValidationException.prepareStackTrace

Source​

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


stackTraceLimit​

static stackTraceLimit: number

Inherited from​

I18nValidationException.stackTraceLimit

Source​

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

Methods​

getResponse​

getResponse(): string | object

Returns​

string | object

Inherited from​

I18nValidationException.getResponse

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:68


getStatus​

getStatus(): number

Returns​

number

Inherited from​

I18nValidationException.getStatus

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:69


initCause​

initCause(): void

Configures error chaining support

Returns​

void

Inherited from​

I18nValidationException.initCause

See​

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:65


initMessage​

initMessage(): void

Returns​

void

Inherited from​

I18nValidationException.initMessage

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:66


initName​

initName(): void

Returns​

void

Inherited from​

I18nValidationException.initName

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:67


toErrorResponse​

toErrorResponse(): Omit<ErrorResponse<object>, "data" | "instance">

Returns​

Omit<ErrorResponse<object>, "data" | "instance">

Source​

libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:16


captureStackTrace​

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters​

▪ targetObject: object

▪ constructorOpt?: Function

Returns​

void

Inherited from​

I18nValidationException.captureStackTrace

Source​

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


createBody​

createBody(nil, message, statusCode)​

static createBody(nil, message, statusCode): HttpExceptionBody

Parameters​

▪ nil: ""

▪ message: HttpExceptionBodyMessage

▪ statusCode: number

Returns​

HttpExceptionBody

Inherited from​

I18nValidationException.createBody

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:70

createBody(message, error, statusCode)​

static createBody(message, error, statusCode): HttpExceptionBody

Parameters​

▪ message: HttpExceptionBodyMessage

▪ error: string

▪ statusCode: number

Returns​

HttpExceptionBody

Inherited from​

I18nValidationException.createBody

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:71

createBody(custom)​

static createBody<Body>(custom): Body

Type parameters​

▪ Body extends Record<string, unknown>

Parameters​

▪ custom: Body

Returns​

Body

Inherited from​

I18nValidationException.createBody

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:72


extractDescriptionAndOptionsFrom​

static extractDescriptionAndOptionsFrom(descriptionOrOptions): DescriptionAndOptions

Utility method used to extract the error description and httpExceptionOptions from the given argument. This is used by inheriting classes to correctly parse both options.

Parameters​

▪ descriptionOrOptions: string | HttpExceptionOptions

Returns​

DescriptionAndOptions

the error description and the httpExceptionOptions as an object.

Inherited from​

I18nValidationException.extractDescriptionAndOptionsFrom

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:80


getDescriptionFrom​

static getDescriptionFrom(descriptionOrOptions): string

Parameters​

▪ descriptionOrOptions: string | HttpExceptionOptions

Returns​

string

Inherited from​

I18nValidationException.getDescriptionFrom

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:73


getHttpExceptionOptionsFrom​

static getHttpExceptionOptionsFrom(descriptionOrOptions): HttpExceptionOptions

Parameters​

▪ descriptionOrOptions: string | HttpExceptionOptions

Returns​

HttpExceptionOptions

Inherited from​

I18nValidationException.getHttpExceptionOptionsFrom

Source​

node_modules/@nestjs/common/exceptions/http.exception.d.ts:74


Generated using typedoc-plugin-markdown and TypeDoc