@metamask/kernel-errors
Version:
14 lines • 688 B
JavaScript
import { StreamReadError } from "./StreamReadError.mjs";
import { VatAlreadyExistsError } from "./VatAlreadyExistsError.mjs";
import { VatDeletedError } from "./VatDeletedError.mjs";
import { VatNotFoundError } from "./VatNotFoundError.mjs";
import { ErrorCode } from "../constants.mjs";
import { SubclusterNotFoundError } from "./SubclusterNotFoundError.mjs";
export const errorClasses = {
[ErrorCode.StreamReadError]: StreamReadError,
[ErrorCode.VatAlreadyExists]: VatAlreadyExistsError,
[ErrorCode.VatDeleted]: VatDeletedError,
[ErrorCode.VatNotFound]: VatNotFoundError,
[ErrorCode.SubclusterNotFound]: SubclusterNotFoundError,
};
//# sourceMappingURL=index.mjs.map