@vercel/sqs-consumer
Version:
Build SQS-based Node applications without the boilerplate
19 lines (18 loc) • 513 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimeoutError = exports.SQSError = void 0;
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;
;