UNPKG

peanar

Version:

A job queue for Node.js based on RabbitMQ

24 lines (23 loc) 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PeanarPoolError = exports.PeanarJobCancelledError = exports.PeanarJobError = exports.PeanarAdapterError = exports.PeanarInternalError = void 0; class PeanarInternalError extends Error { } exports.PeanarInternalError = PeanarInternalError; class PeanarAdapterError extends Error { } exports.PeanarAdapterError = PeanarAdapterError; class PeanarJobError extends Error { } exports.PeanarJobError = PeanarJobError; class PeanarJobCancelledError extends PeanarJobError { underlyingError; constructor(underlyingError) { super(underlyingError?.message); this.underlyingError = underlyingError; } } exports.PeanarJobCancelledError = PeanarJobCancelledError; class PeanarPoolError extends Error { } exports.PeanarPoolError = PeanarPoolError;