// SPDX-License-Identifier: Apache-2.0
/**
 * An exception thrown when the executable does not meet the required version for Kind.
 */
export class KindVersionRequirementException extends Error {
    constructor(messageOrCause, cause) {
        if (messageOrCause instanceof Error) {
            super(messageOrCause.message);
            this.cause = messageOrCause;
        }
        else {
            super(messageOrCause);
            if (cause) {
                this.cause = cause;
            }
        }
        this.name = this.constructor.name;
    }
}
//# sourceMappingURL=kind-version-requirement-exception.js.map