/**
 * DevExtreme (esm/__internal/scheduler/options_validator/options_validator_errors_handler.js)
 * Version: 24.1.7-build-24272-1937
 * Build date: Sat Sep 28 2024
 *
 * Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
 * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
 */
import errors from "../../../ui/widget/ui.errors";
import {
    OptionsValidatorErrorHandler
} from "./core/index";
const GLOBAL_ERROR_HANDLER = {
    logError: errorCode => {
        errors.log(errorCode)
    },
    throwError: errorCode => {
        throw errors.Error(errorCode)
    }
};
export class SchedulerOptionsValidatorErrorsHandler extends OptionsValidatorErrorHandler {
    constructor() {
        super({
            startDayHour: "E1058",
            endDayHour: "E1058",
            startDayHourAndEndDayHour: "E1058",
            offset: "E1061",
            cellDuration: "E1062",
            cellDurationAndVisibleInterval: "E1062"
        }, GLOBAL_ERROR_HANDLER)
    }
}
