Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 134x | import { AbortError } from './AbortError.ts';
import { DuplicateEndowmentError } from './DuplicateEndowmentError.ts';
import { EvaluatorError } from './EvaluatorError.ts';
import { ResourceLimitError } from './ResourceLimitError.ts';
import { SampleGenerationError } from './SampleGenerationError.ts';
import { StreamReadError } from './StreamReadError.ts';
import { VatAlreadyExistsError } from './VatAlreadyExistsError.ts';
import { VatDeletedError } from './VatDeletedError.ts';
import { VatNotFoundError } from './VatNotFoundError.ts';
import { ErrorCode } from '../constants.ts';
import { SubclusterNotFoundError } from './SubclusterNotFoundError.ts';
export const errorClasses = {
[ErrorCode.AbortError]: AbortError,
[ErrorCode.DuplicateEndowment]: DuplicateEndowmentError,
[ErrorCode.StreamReadError]: StreamReadError,
[ErrorCode.VatAlreadyExists]: VatAlreadyExistsError,
[ErrorCode.VatDeleted]: VatDeletedError,
[ErrorCode.VatNotFound]: VatNotFoundError,
[ErrorCode.SubclusterNotFound]: SubclusterNotFoundError,
[ErrorCode.SampleGenerationError]: SampleGenerationError,
[ErrorCode.InternalError]: EvaluatorError,
[ErrorCode.ResourceLimitError]: ResourceLimitError,
} as const;
|