"use strict";
/*
 * Copyright (c) 2025-2026 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the 'License');
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an 'AS IS' BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.DriverError = exports.ErrorCode = void 0;
var ErrorCode;
(function (ErrorCode) {
    ErrorCode["BUILDSYSTEM_COMPILE_ABC_FAIL"] = "11410001";
    ErrorCode["BUILDSYSTEM_LINK_ABC_FAIL"] = "11410002";
    ErrorCode["BUILDSYSTEM_SOURCEROOTS_NOT_SET_FAIL"] = "11410003";
    ErrorCode["BUILDSYSTEM_UNRECOGNIZED_MODULEROOTPATH"] = "11410004";
    ErrorCode["BUILDSYSTEM_MODULE_INFO_NOT_CORRECT_FAIL"] = "11410005";
    ErrorCode["BUILDSYSTEM_DEPENDENT_MODULE_INFO_NOT_CORRECT_FAIL"] = "11410006";
    ErrorCode["BUILDSYSTEM_FILE_NOT_BELONG_TO_ANY_MODULE_FAIL"] = "11410007";
    ErrorCode["BUILDSYSTEM_LOAD_PLUGIN_FAIL"] = "11410008";
    ErrorCode["BUILDSYSTEM_ARK_LINK_NOT_FOUND_FAIL"] = "11410009";
    ErrorCode["BUILDSYSTEM_SDK_NOT_EXIST_FAIL"] = "11410010";
    ErrorCode["BUILDSYSTEM_DEPENDENT_MODULE_INFO_NOT_FOUND"] = "11410011";
    ErrorCode["BUILDSYSTEM_PLUGIN_CONTEXT_RESET_PROJECT_CONFIG"] = "11410012";
    ErrorCode["BUILDSYSTEM_DECLGEN_FAIL"] = "11410013";
    ErrorCode["BUILDSYSTEM_LOAD_HASH_CACHE_FAIL"] = "11410014";
    ErrorCode["BUILDSYSTEM_DEPENDENCY_ANALYZE_FAIL"] = "11410015";
    ErrorCode["BUILDSYSTEM_DEPENDENCY_ANALYZER_NOT_FOUND_FAIL"] = "11410016";
    ErrorCode["BUILDSYSTEM_ABC_FILE_MISSING_IN_BCHAR"] = "11410017";
    ErrorCode["BUILDSYSTEM_HANDLE_ENTRY_FILE"] = "11410018";
    ErrorCode["BUILDSYSTEM_PATH_RESOLVE_FAIL"] = "11410019";
    ErrorCode["BUILDSYSTEM_INTEROP_SDK_NOT_FIND"] = "11410020";
    ErrorCode["BUILDSYSTEM_INIT_ALIAS_CONFIG_FAILED"] = "11410021";
    ErrorCode["BUILDSYSTEM_PLUGIN_ALIAS_CONFIG_PARSING_FAIL"] = "11410022";
    ErrorCode["BUILDSYSTEM_ABC_FILE_NOT_EXIST_IN_BCHAR"] = "11410023";
    ErrorCode["BUILDSYSTEM_ALIAS_MODULE_PATH_NOT_EXIST"] = "11410024";
    ErrorCode["BUILDSYSTEM_ENTRY_FILE_NOT_EXIST"] = "11410025";
    ErrorCode["BUILDSYSTEM_COMPILE_FAILED_IN_WORKER"] = "11410026";
    ErrorCode["BUILDSYSTEM_DECLGEN_FAILED_IN_WORKER"] = "11410027";
    ErrorCode["BUILDSYSTEM_DYNAMIC_MODULE_DECL_FILE_NOT_FOUND"] = "11410028";
    ErrorCode["BUILDSYSTEM_ERRORS_OCCURRED"] = "11410029";
    ErrorCode["BUILDSYSTEM_GRAPH_ERROR"] = "11410030";
    ErrorCode["BUILDSYSTEM_PACKAGENAME_NOT_INCLUDED_IN_MODULEINFOS"] = "11410031";
})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
class DriverError extends Error {
    constructor(logData) {
        super();
        this.logData = logData;
    }
    toString() {
        return this.logData.toString();
    }
}
exports.DriverError = DriverError;
