import { LodestarError } from "@lodestar/utils";
export { QueueErrorCode };
var QueueErrorCode;
(function (QueueErrorCode) {
    QueueErrorCode["QUEUE_ABORTED"] = "QUEUE_ERROR_QUEUE_ABORTED";
    QueueErrorCode["QUEUE_MAX_LENGTH"] = "QUEUE_ERROR_QUEUE_MAX_LENGTH";
})(QueueErrorCode || (QueueErrorCode = {}));
export class QueueError extends LodestarError {
}
export function isQueueErrorAborted(e) {
    return e instanceof QueueError && e.type.code === QueueErrorCode.QUEUE_ABORTED;
}
//# sourceMappingURL=errors.js.map