// SPDX-License-Identifier: Apache-2.0
/**
 * Exception thrown when there is a configuration error in the Helm client.
 */
export class HelmConfigurationException extends Error {
    // Implementation
    constructor(messageOrCause, cause) {
        if (typeof messageOrCause === 'string') {
            super(messageOrCause);
            if (cause) {
                this.cause = cause;
            }
        }
        else if (messageOrCause instanceof Error) {
            super(messageOrCause.message);
            this.cause = messageOrCause;
        }
        else {
            super();
        }
        this.name = 'HelmConfigurationException';
    }
    cause;
}
//# sourceMappingURL=helm-configuration-exception.js.map