UNPKG

@palmares/events

Version:

This is the events framework for palmares, it's responsible for handling everything that is Pub/Sub like websockets, pub/sub like redis, and other types of asynchronous background tasks

17 lines (15 loc) 467 B
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // src/events/exceptions.ts var NoLayerError = class _NoLayerError extends Error { static { __name(this, "NoLayerError"); } constructor() { super("Your emitter does not have a layer. You should add a layer before trying to emit an event to the layer"); this.name = _NoLayerError.name; } }; export { NoLayerError };