Class: InvalidConfigurationException
Hierarchy
↳
InvalidConfigurationException
Constructors
constructor
• new InvalidConfigurationException(): InvalidConfigurationException
Returns
Overrides
Defined in
lib/src/exceptions/invalid-configuration.exception.ts:8
Methods
getResponse
▸ getResponse(): string | object
Returns
string | object
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:72
getStatus
▸ getStatus(): number
Returns
number
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:73
initCause
▸ initCause(): void
Configures error chaining support
Returns
void
See
- https://nodejs.org/en/blog/release/v16.9.0/#error-cause
- https://github.com/microsoft/TypeScript/issues/45167
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:69
initMessage
▸ initMessage(): void
Returns
void
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:70
initName
▸ initName(): void
Returns
void
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:71
captureStackTrace
▸ captureStackTrace(targetObject, constructorOpt?): void
Create .stack property on a target object
Parameters
| Name | Type |
|---|---|
targetObject | object |
constructorOpt? | Function |
Returns
void
Inherited from
CloneBayException.captureStackTrace
Defined in
lib/node_modules/@types/node/globals.d.ts:136
createBody
▸ createBody(nil, message, statusCode): HttpExceptionBody
Parameters
| Name | Type |
|---|---|
nil | null | "" |
message | HttpExceptionBodyMessage |
statusCode | number |
Returns
HttpExceptionBody
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:74
▸ createBody(message, error, statusCode): HttpExceptionBody
Parameters
| Name | Type |
|---|---|
message | HttpExceptionBodyMessage |
error | string |
statusCode | number |
Returns
HttpExceptionBody
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:75
▸ createBody<Body>(custom): Body
Type parameters
| Name | Type |
|---|---|
Body | extends Record<string, unknown> |
Parameters
| Name | Type |
|---|---|
custom | Body |
Returns
Body
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:76
extractDescriptionAndOptionsFrom
▸ 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
| Name | Type |
|---|---|
descriptionOrOptions | string | HttpExceptionOptions |
Returns
DescriptionAndOptions
the error description and the httpExceptionOptions as an object.
Inherited from
CloneBayException.extractDescriptionAndOptionsFrom
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:84
getDescriptionFrom
▸ getDescriptionFrom(descriptionOrOptions): string
Parameters
| Name | Type |
|---|---|
descriptionOrOptions | string | HttpExceptionOptions |
Returns
string
Inherited from
CloneBayException.getDescriptionFrom
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:77
getHttpExceptionOptionsFrom
▸ getHttpExceptionOptionsFrom(descriptionOrOptions): HttpExceptionOptions
Parameters
| Name | Type |
|---|---|
descriptionOrOptions | string | HttpExceptionOptions |
Returns
HttpExceptionOptions
Inherited from
CloneBayException.getHttpExceptionOptionsFrom
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:78
Properties
cause
• cause: unknown
Exception cause. Indicates the specific original cause of the error. It is used when catching and re-throwing an error with a more-specific or useful error message in order to still have access to the original error.
Inherited from
Defined in
lib/node_modules/@nestjs/common/exceptions/http.exception.d.ts:28
message
• message: string
Inherited from
Defined in
docs/node_modules/typescript/lib/lib.es5.d.ts:1077
name
• name: string
Inherited from
Defined in
docs/node_modules/typescript/lib/lib.es5.d.ts:1076
stack
• Optional stack: string
Inherited from
Defined in
docs/node_modules/typescript/lib/lib.es5.d.ts:1078
prepareStackTrace
▪ Static Optional prepareStackTrace: (err: Error, stackTraces: CallSite[]) => any
Optional override for formatting stack traces
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Type declaration
▸ (err, stackTraces): any
Parameters
| Name | Type |
|---|---|
err | Error |
stackTraces | CallSite[] |
Returns
any
Inherited from
CloneBayException.prepareStackTrace
Defined in
lib/node_modules/@types/node/globals.d.ts:143
stackTraceLimit
▪ Static stackTraceLimit: number
Inherited from
CloneBayException.stackTraceLimit
Defined in
lib/node_modules/@types/node/globals.d.ts:145