// (C) 2022-2026 GoodData Corporation
import { invalidArgumentsProvided } from "../../../events/general.js";
import { validateKpiDrillTarget } from "./kpiDrillValidationUtils.js";
export function validateKpiDrill(drill, ctx, cmd) {
    try {
        validateKpiDrillTarget(drill);
    }
    catch (ex) {
        const messageDetail = ex.message;
        throw invalidArgumentsProvided(ctx, cmd, `Invalid KPI drill target. Error: ${messageDetail}`);
    }
}
