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
Inherited from
HttpException.initMessage
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:66
initName
initName():
void
Returns
void
Inherited from
HttpException.initName
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:67
captureStackTrace
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
Parameters
▪ targetObject: object
▪ constructorOpt?: Function
Returns
void
Inherited from
HttpException.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
HttpException.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
HttpException.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
HttpException.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
HttpException.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
HttpException.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
HttpException.getHttpExceptionOptionsFrom
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:74
Generated using typedoc-plugin-markdown and TypeDoc