@qbatch/sqs-consumer
Version:
Build SQS-based Node applications without the boilerplate
18 lines (17 loc) • 463 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class SQSError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
}
}
exports.SQSError = SQSError;
class TimeoutError extends Error {
constructor(message = 'Operation timed out.') {
super(message);
this.message = message;
this.name = 'TimeoutError';
}
}
exports.TimeoutError = TimeoutError;