UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

35 lines 1.84 kB
// SPDX-License-Identifier: Apache-2.0 import { CreateDeploymentSoloError } from './classes/create-deployment-solo-error.js'; import { DeploymentAlreadyExistsSoloError } from './classes/deployment-already-exists-solo-error.js'; import { LocalConfigNotFoundSoloError } from './classes/local-config-not-found-solo-error.js'; import { RemoteConfigsMismatchSoloError } from './classes/remote-configs-mismatch-solo-error.js'; /** * Registry of typed Solo error constructors, grouped by error code category. * * To add a new error type: * 1. Create `src/core/errors/classes/<kebab-name>.ts` — a class extending SoloError, * passing a SoloErrorInit with a message, code, and optional troubleshootingSteps. * 2. Add the error code constant to `src/core/errors/error-code-registry.ts`. * 3. Import the class in this file and add it to the appropriate static namespace below. */ export class SoloErrors { // 1xxx - Configuration: Deployment config, schema, existence checks static config = Object.freeze({ localNotFound: LocalConfigNotFoundSoloError, remoteMismatch: RemoteConfigsMismatchSoloError, }); // 2xxx - Deployment / Infrastructure: Cluster, namespace, pod lifecycle static deployment = Object.freeze({ alreadyExists: DeploymentAlreadyExistsSoloError, createFailed: CreateDeploymentSoloError, }); // 3xxx — Component: Relay, Mirror Node, Explorer, CN runtime static component = Object.freeze({}); // 4xxx — Validation: User input, flags, IDs, formatting static validation = Object.freeze({}); // 5xxx — System / Environment: kubectl, DNS, permissions, timeouts static system = Object.freeze({}); // 9xxx — Internal: Unexpected bugs, unimplemented paths static internal = Object.freeze({}); } //# sourceMappingURL=solo-errors.js.map