amqp-client-type-fix
Version:
AMQP 0-9-1 client, both for browsers (WebSocket) and node (TCP Socket)
21 lines • 652 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AMQPError = void 0;
/**
* An error, can be both AMQP level errors or socket errors
* @property {string} message
* @property {AMQPBaseClient} connection - The connection the error was raised on
*/
class AMQPError extends Error {
/**
* @param message - Error description
* @param connection - The connection the error was raised on
*/
constructor(message, connection) {
super(message);
this.name = "AMQPError";
this.connection = connection;
}
}
exports.AMQPError = AMQPError;
//# sourceMappingURL=amqp-error.js.map