Class: UserException
Generic user exception.
Extends
Error
Implements
Constructors
new UserException()
new UserException(
message
,originalError
?):UserException
Parameters
Parameter | Type |
---|---|
message | string |
originalError ? | unknown |
Returns
Overrides
Error.constructor
Defined in
.tmp/repos/rockets/packages/nestjs-user/src/exceptions/user-exception.ts:14 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Description | Inherited from |
---|---|---|---|---|---|
context | public | object | undefined | Additional context | - |
context.message | public | string | undefined | - | - |
context.originalError | public | Error | undefined | - | - |
errorCode | public | string | 'USER_ERROR' | The error code. | - |
message | public | string | undefined | - | ExceptionInterface .message Error.message |
name | public | string | undefined | - | ExceptionInterface .name Error.name |
stack? | public | string | undefined | - | ExceptionInterface .stack Error.stack |
prepareStackTrace? | static | (err : Error , stackTraces : CallSite []) => any | undefined | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces (opens in a new tab) | Error.prepareStackTrace |
stackTraceLimit | static | number | undefined | - | Error.stackTraceLimit |
Methods
captureStackTrace()
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
Parameters
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
Returns
void
Inherited from
Error.captureStackTrace
Defined in
.tmp/repos/rockets/node_modules/@types/node/globals.d.ts:4