UNPKG

@hashgraph/solo

Version:

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

19 lines (16 loc) 727 B
// SPDX-License-Identifier: Apache-2.0 import {SoloError} from '../../../core/errors/solo-error.js'; export class KubeApiError extends SoloError { /** * Instantiates a new error with a message and an optional cause. * * @param message - the error message. * @param statusCode - the HTTP status code. * @param input - the input that caused the error (if available). * @param cause - optional underlying cause of the error. * @param meta - optional metadata to be reported. */ public constructor(message: string, statusCode: number, input?: unknown, cause?: Error, meta?: object) { super(message + `, statusCode: ${statusCode}, input: ${input}`, cause, {...meta, statusCode: statusCode}); } }