@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
12 lines • 501 B
JavaScript
import { LodestarError } from "@lodestar/utils";
export 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