rabbitmq-enterprise-toolkit
Version:
🚀 Enterprise-grade RabbitMQ wrapper for Node.js & TypeScript - High-throughput messaging with automatic retry, DLQ, batch processing & graceful shutdown. Production-ready AMQP client with zero message loss guarantee.
42 lines • 1.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetryExhaustedError = exports.ConsumerError = exports.PublishError = exports.ConnectionError = exports.RabbitMQError = void 0;
class RabbitMQError extends Error {
constructor(message, code, details) {
super(message);
this.code = code;
this.details = details;
this.name = 'RabbitMQError';
}
}
exports.RabbitMQError = RabbitMQError;
class ConnectionError extends RabbitMQError {
constructor(message, details) {
super(message, 'CONNECTION_ERROR', details);
this.name = 'ConnectionError';
}
}
exports.ConnectionError = ConnectionError;
class PublishError extends RabbitMQError {
constructor(message, details) {
super(message, 'PUBLISH_ERROR', details);
this.name = 'PublishError';
}
}
exports.PublishError = PublishError;
class ConsumerError extends RabbitMQError {
constructor(message, details) {
super(message, 'CONSUMER_ERROR', details);
this.name = 'ConsumerError';
}
}
exports.ConsumerError = ConsumerError;
class RetryExhaustedError extends RabbitMQError {
constructor(message, retryCount, details) {
super(message, 'RETRY_EXHAUSTED', details);
this.retryCount = retryCount;
this.name = 'RetryExhaustedError';
}
}
exports.RetryExhaustedError = RetryExhaustedError;
//# sourceMappingURL=errors.js.map