Class: GeneralBadRequestException
exceptions/src.GeneralBadRequestException
Extends
Constructors
new GeneralBadRequestException(errors, detail, errorCode, rootCause)
new GeneralBadRequestException(
errors
,detail
?,errorCode
?,rootCause
?):GeneralBadRequestException
Parameters
▪ errors: ValidationError
| ValidationError
[]
▪ detail?: string
▪ errorCode?: string
▪ rootCause?: unknown
Returns
Overrides
I18nValidationException
.constructor
Source
libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:7
Properties
cause
cause:
unknown
Inherited from
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:58
detail
detail?:
string
Source
libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:9
errorCode
errorCode?:
string
Source
libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:10
errors
errors:
ValidationError
[]
Inherited from
I18nValidationException
.errors
Source
libs/i18n/src/lib/interfaces/i18n-validation-error.interface.ts:7
message
message:
string
Inherited from
I18nValidationException
.message
Source
node_modules/typescript/lib/lib.es5.d.ts:1068
name
name:
string
Inherited from
Source
node_modules/typescript/lib/lib.es5.d.ts:1067
rootCause
rootCause?:
unknown
Source
libs/exceptions/src/lib/exceptions/general-bad-request.exception.ts:11
stack
stack?:
string
Inherited from
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
I18nValidationException
.prepareStackTrace
Source
node_modules/@types/node/globals.d.ts:28
stackTraceLimit
static
stackTraceLimit:number
Inherited from
I18nValidationException
.stackTraceLimit
Source
node_modules/@types/node/globals.d.ts:30
Methods
getResponse
getResponse():
string
|object
Returns
string
| object
Inherited from
I18nValidationException
.getResponse
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:68
getStatus
getStatus():
number
Returns
number
Inherited from
I18nValidationException
.getStatus
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:69
initCause
initCause():
void
Configures error chaining support
Returns
void
Inherited from
I18nValidationException
.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
I18nValidationException
.initMessage
Source
node_modules/@nestjs/common/exceptions/http.exception.d.ts:66
initName
initName():
void