Skip to main content

RegistrationErrorEvent

This event is emitted at startup when a class fails to register. It emits the Error object.

@example
const myEvent = new RegistrationErrorEvent(new Error('e'));
EventService.getInstance().emit(myEvent);
@returns

The Event instance.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • payload: Error
    • userData: object = {}

    Returns RegistrationErrorEvent

Properties

readonlyheader

header: { timestamp: number }

Type declaration

  • timestamp: number

readonlypayload

payload: Error

readonlyuserData

userData: object

Methods

staticregistrar

  • registrar(...args: [EventService, PropertyDescriptor]): void
  • The registrar() method is explicitly called by the EventSource decorator for a method to enhance the method to auto-emit events.


    Parameters

    • rest...args: [EventService, PropertyDescriptor]

      Arguments are spread out using the array spread operator.

    Returns void