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
| Parameter | Type | Default value |
|---|---|---|
listener | EventListenOnInterface<E> | undefined |
originalError | unknown | undefined |
message | string | 'Error while trying to listen on an event' |
Returns
Overrides
Error.constructor
Defined in
Properties
| Property | Modifier | Type | Default value | Description | Inherited from |
|---|---|---|---|---|---|
context | public | object | undefined | Additional context | - |
context.listener | public | EventListenOnInterface<E> | undefined | - | - |
context.originalError | public | Error | undefined | - | - |
errorCode | public | string | 'EVENT_LISTEN_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()
staticcaptureStackTrace(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