Class: I18nValidationExceptionFilter
Implements
ExceptionFilter
Constructors
constructor
• new I18nValidationExceptionFilter(options?
)
Parameters
Name | Type |
---|---|
options | I18nValidationExceptionFilterOptions |
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
Name | Type |
---|---|
exception | I18nValidationException |
host | ArgumentsHost |
Returns
Implementation of
ExceptionFilter.catch
Defined in
src/filters/i18n-validation-exception.filter.ts:28
flattenValidationErrors
▸ Protected
flattenValidationErrors(validationErrors
): string
[]
Parameters
Name | Type |
---|---|
validationErrors | ValidationError [] |
Returns
string
[]
Defined in
src/filters/i18n-validation-exception.filter.ts:79
isWithErrorFormatter
▸ Private
isWithErrorFormatter(options
): options is I18nValidationExceptionFilterErrorFormatterOption
Parameters
Name | Type |
---|---|
options | I18nValidationExceptionFilterOptions |
Returns
options is I18nValidationExceptionFilterErrorFormatterOption
Defined in
src/filters/i18n-validation-exception.filter.ts:55
normalizeValidationErrors
▸ Protected
normalizeValidationErrors(validationErrors
): object
| string
[] | ValidationError
[]
Parameters
Name | Type |
---|---|
validationErrors | ValidationError [] |
Returns
object
| string
[] | ValidationError
[]