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
Parameter | Type | Default value |
---|---|---|
originalError ? | unknown | undefined |
message ? | string | 'Error occurred in event listener' |
Returns
Overrides
Error.constructor
Defined in
Properties
Property | Modifier | Type | Default value | Description | Inherited from |
---|---|---|---|---|---|
context | public | object | undefined | Additional context | - |
context.originalError | public | Error | undefined | - | - |
errorCode | public | string | 'EVENT_LISTENER_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