Class: EventDispatchException<P, R>
Thrown when an error is caught when dispatching an Event.
Extends
Error
Type Parameters
Type Parameter |
---|
P |
R |
Implements
Constructors
new EventDispatchException()
new EventDispatchException<
P
,R
>(event
,originalError
,message
):EventDispatchException
<P
,R
>
Parameters
Parameter | Type | Default value |
---|---|---|
event | EventInterface <P , R > | undefined |
originalError | unknown | undefined |
message | string | 'Error while trying to dispatch the event with key %s' |
Returns
EventDispatchException
<P
, R
>
Overrides
Error.constructor
Defined in
Properties
Property | Modifier | Type | Default value | Description | Inherited from |
---|---|---|---|---|---|
context | public | object | undefined | Additional context | - |
context.event | public | EventInterface <P , R > | undefined | - | - |
context.originalError | public | Error | undefined | - | - |
errorCode | public | string | 'EVENT_DISPATCH_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