// 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 cause - optional underlying cause of the error.
     * @param meta - optional metadata to be reported.
     */
    constructor(message, statusCode, cause, meta) {
        super(message + `, statusCode: ${statusCode}`, cause, { ...meta, statusCode: statusCode });
    }
}
//# sourceMappingURL=kube-api-error.js.map