UNPKG

simple-command-bus

Version:
21 lines (15 loc) 665 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _createException = _interopRequireDefault(require("./createException")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var InvalidHandlerMethodException = (0, _createException["default"])('InvalidHandlerMethodException', { message: 'Invalid handler method.' }); InvalidHandlerMethodException.forMethod = function (method) { throw new InvalidHandlerMethodException("Invalid handler method ".concat(method, ".")); }; var _default = InvalidHandlerMethodException; exports["default"] = _default;