API Reference
Rockets Core API
nestjs-user
classes
UserException

Class: UserException

Generic user exception.

Extends

  • Error

Implements

Constructors

new UserException()

new UserException(message, originalError?): UserException

Parameters

ParameterType
messagestring
originalError?unknown

Returns

UserException

Overrides

Error.constructor

Defined in

.tmp/repos/rockets/packages/nestjs-user/src/exceptions/user-exception.ts:14 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueDescriptionInherited from
contextpublicobjectundefinedAdditional context-
context.messagepublicstringundefined--
context.originalErrorpublicErrorundefined--
errorCodepublicstring'USER_ERROR'The error code.-
messagepublicstringundefined-ExceptionInterface.message Error.message
namepublicstringundefined-ExceptionInterface.name Error.name
stack?publicstringundefined-ExceptionInterface.stack Error.stack
prepareStackTrace?static(err: Error, stackTraces: CallSite[]) => anyundefinedOptional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces (opens in a new tab)Error.prepareStackTrace
stackTraceLimitstaticnumberundefined-Error.stackTraceLimit

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

ParameterType
targetObjectobject
constructorOpt?Function

Returns

void

Inherited from

Error.captureStackTrace

Defined in

.tmp/repos/rockets/node_modules/@types/node/globals.d.ts:4