UNPKG

@gabliam/amqp

Version:
14 lines (13 loc) 540 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AmqpDuplicateConnectionError = void 0; class AmqpDuplicateConnectionError extends Error { constructor(connectionName) { super(); this.name = 'AmqpDuplicateConnectionError'; // Set the prototype explicitly. Object.setPrototypeOf(this, AmqpDuplicateConnectionError.prototype); this.message = `Duplicate connection '${connectionName}'`; } } exports.AmqpDuplicateConnectionError = AmqpDuplicateConnectionError;