@dolittle/sdk.events.handling
Version:
Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.
20 lines • 1.3 kB
JavaScript
;
// Copyright (c) Dolittle. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
Object.defineProperty(exports, "__esModule", { value: true });
exports.MissingEventHandlerForType = void 0;
const rudiments_1 = require("@dolittle/rudiments");
/**
* Exception that is thrown when there is no event handler for a specific event type.
*/
class MissingEventHandlerForType extends rudiments_1.Exception {
/**
* Initialises a new instance of the {@link MissingEventHandlerForType} class.
* @param {EventType} eventType - The type that is missing an event handler.
*/
constructor(eventType) {
super(`Missing event handler for '${eventType}'`);
}
}
exports.MissingEventHandlerForType = MissingEventHandlerForType;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlzc2luZ0V2ZW50SGFuZGxlckZvclR5cGUuanMiLCJzb3VyY2VSb290IjoiLi4vIiwic291cmNlcyI6WyJNaXNzaW5nRXZlbnRIYW5kbGVyRm9yVHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsK0NBQStDO0FBQy9DLHFHQUFxRzs7O0FBRXJHLG1EQUFnRDtBQUdoRDs7R0FFRztBQUNILE1BQWEsMEJBQTJCLFNBQVEscUJBQVM7SUFDckQ7OztPQUdHO0lBQ0gsWUFBWSxTQUFvQjtRQUM1QixLQUFLLENBQUMsOEJBQThCLFNBQVMsR0FBRyxDQUFDLENBQUM7SUFDdEQsQ0FBQztDQUNKO0FBUkQsZ0VBUUMifQ==