@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
17 lines • 747 B
JavaScript
// 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.
*/
constructor(message, statusCode, input, cause, meta) {
super(message + `, statusCode: ${statusCode}, input: ${input}`, cause, { ...meta, statusCode: statusCode });
}
}
//# sourceMappingURL=kube-api-error.js.map