Class: I18nValidationException
i18n/src.I18nValidationException
Extends
HttpException
Constructors
new I18nValidationException(errors, status)
new I18nValidationException(
errors
,status
):I18nValidationException
Parameters
▪ errors: ValidationError
[]
▪ status: HttpStatus
= HttpStatus.BAD_REQUEST
Returns
Overrides
HttpException.constructor
Source
libs/i18n/src/lib/interfaces/i18n-validation-error.interface.ts:6
Properties
cause
cause:
unknown
Inherited from
HttpException.cause
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:58
errors
errors:
ValidationError
[]
Source
libs/i18n/src/lib/interfaces/i18n-validation-error.interface.ts:7
message
message:
string
Inherited from
HttpException.message
Source
node_modules/typescript/lib/lib.es5.d.ts:1068
name
name:
string
Inherited from
HttpException.name
Source
node_modules/typescript/lib/lib.es5.d.ts:1067
stack
stack?:
string
Inherited from
HttpException.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
HttpException.prepareStackTrace
Source
node_modules/@types/node/globals.d.ts:28
stackTraceLimit
static
stackTraceLimit:number
Inherited from
HttpException.stackTraceLimit
Source
node_modules/@types/node/globals.d.ts:30
Methods
getResponse
getResponse():
string
|object
Returns
string
| object
Inherited from
HttpException.getResponse
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:68
getStatus
getStatus():
number
Returns
number
Inherited from
HttpException.getStatus
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:69
initCause
initCause():
void
Configures error chaining support
Returns
void
Inherited from
HttpException.initCause
See
- https://nodejs.org/en/blog/release/v16.9.0/#error-cause
- https://github.com/microsoft/TypeScript/issues/45167
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:65
initMessage
initMessage():
void
Returns
void