API Reference
Rockets Core API
nestjs-event
classes
EventListenException

Class: EventListenException<E>

Thrown when an error is caught when listening on an EventListenOn.

Extends

  • Error

Type Parameters

Type Parameter
E

Implements

Constructors

new EventListenException()

new EventListenException<E>(listener, originalError, message): EventListenException<E>

Parameters

ParameterTypeDefault value
listenerEventListenOnInterface<E>undefined
originalErrorunknownundefined
messagestring'Error while trying to listen on an event'

Returns

EventListenException<E>

Overrides

Error.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueDescriptionInherited from
contextpublicobjectundefinedAdditional context-
context.listenerpublicEventListenOnInterface<E>undefined--
context.originalErrorpublicErrorundefined--
errorCodepublicstring'EVENT_LISTEN_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