Skip to main content

Class: I18nValidationExceptionFilter

Implements

  • ExceptionFilter

Constructors

constructor

new I18nValidationExceptionFilter(options?)

Parameters

NameType
optionsI18nValidationExceptionFilterOptions

Defined in

src/filters/i18n-validation-exception.filter.ts:23

Properties

options

Private Readonly options: I18nValidationExceptionFilterOptions

Defined in

src/filters/i18n-validation-exception.filter.ts:24

Methods

catch

catch(exception, host): I18nValidationException

Parameters

NameType
exceptionI18nValidationException
hostArgumentsHost

Returns

I18nValidationException

Implementation of

ExceptionFilter.catch

Defined in

src/filters/i18n-validation-exception.filter.ts:28


flattenValidationErrors

Protected flattenValidationErrors(validationErrors): string[]

Parameters

NameType
validationErrorsValidationError[]

Returns

string[]

Defined in

src/filters/i18n-validation-exception.filter.ts:79


isWithErrorFormatter

Private isWithErrorFormatter(options): options is I18nValidationExceptionFilterErrorFormatterOption

Parameters

NameType
optionsI18nValidationExceptionFilterOptions

Returns

options is I18nValidationExceptionFilterErrorFormatterOption

Defined in

src/filters/i18n-validation-exception.filter.ts:55


normalizeValidationErrors

Protected normalizeValidationErrors(validationErrors): object | string[] | ValidationError[]

Parameters

NameType
validationErrorsValidationError[]

Returns

object | string[] | ValidationError[]

Defined in

src/filters/i18n-validation-exception.filter.ts:61