API Reference
Rockets Core API
nestjs-event
classes
EventListenerException

Class: EventListenerException

Thrown when an error is caught when subscribing or managing a EventListener of an Event.

Extends

  • Error

Implements

Constructors

new EventListenerException()

new EventListenerException(originalError?, message?): EventListenerException

Parameters

ParameterTypeDefault value
originalError?unknownundefined
message?string'Error occurred in event listener'

Returns

EventListenerException

Overrides

Error.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueDescriptionInherited from
contextpublicobjectundefinedAdditional context-
context.originalErrorpublicErrorundefined--
errorCodepublicstring'EVENT_LISTENER_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