@vercel/sqs-consumer
Version:
Build SQS-based Node applications without the boilerplate
27 lines (23 loc) • 454 B
text/typescript
class SQSError extends Error {
code: string;
statusCode: number;
region: string;
hostname: string;
time: Date;
retryable: boolean;
constructor(message: string) {
super(message);
this.name = this.constructor.name;
}
}
class TimeoutError extends Error {
constructor(message = 'Operation timed out.') {
super(message);
this.message = message;
this.name = 'TimeoutError';
}
}
export {
SQSError,
TimeoutError
};