Skip to main content

Class: I18nValidationException

Hierarchy

  • HttpException

    I18nValidationException

Constructors

constructor

new I18nValidationException(errors, status?)

Parameters

NameTypeDefault value
errorsValidationError[]undefined
statusHttpStatusHttpStatus.BAD_REQUEST

Overrides

HttpException.constructor

Defined in

src/interfaces/i18n-validation-error.interface.ts:6

Properties

cause

cause: Error

Inherited from

HttpException.cause

Defined in

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


errors

errors: ValidationError[]

Defined in

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


message

message: string

Inherited from

HttpException.message

Defined in

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


name

name: string

Inherited from

HttpException.name

Defined in

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


stack

Optional stack: string

Inherited from

HttpException.stack

Defined in

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


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

HttpException.prepareStackTrace

Defined in

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


stackTraceLimit

Static stackTraceLimit: number

Inherited from

HttpException.stackTraceLimit

Defined in

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

Methods

getResponse

getResponse(): string | object

Returns

string | object

Inherited from

HttpException.getResponse

Defined in

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


getStatus

getStatus(): number

Returns

number

Inherited from

HttpException.getStatus

Defined in

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


initCause

initCause(): void

Configures error chaining support

See:

Returns

void

Inherited from

HttpException.initCause

Defined in

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


initMessage

initMessage(): void

Returns

void

Inherited from

HttpException.initMessage

Defined in

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


initName

initName(): void

Returns

void

Inherited from

HttpException.initName

Defined in

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


captureStackTrace

Static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

NameType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

HttpException.captureStackTrace

Defined in

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


createBody

Static createBody(objectOrErrorMessage, description?, statusCode?): object

Parameters

NameType
objectOrErrorMessagestring | object
description?string
statusCode?number

Returns

object

Inherited from

HttpException.createBody

Defined in

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


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

NameType
descriptionOrOptionsstring | HttpExceptionOptions

Returns

DescriptionAndOptions

the error description and the httpExceptionOptions as an object.

Inherited from

HttpException.extractDescriptionAndOptionsFrom

Defined in

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


getDescriptionFrom

Static getDescriptionFrom(descriptionOrOptions): string

Parameters

NameType
descriptionOrOptionsstring | HttpExceptionOptions

Returns

string

Inherited from

HttpException.getDescriptionFrom

Defined in

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


getHttpExceptionOptionsFrom

Static getHttpExceptionOptionsFrom(descriptionOrOptions): HttpExceptionOptions

Parameters

NameType
descriptionOrOptionsstring | HttpExceptionOptions

Returns

HttpExceptionOptions

Inherited from

HttpException.getHttpExceptionOptionsFrom

Defined in

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