* Copyright (c) 2025 Huawei Technologies Co., Ltd.
* This program is free software, you can redistribute it and/or modify it under the terms and conditions of
* CANN Open Software License Agreement Version 2.0 (the "License").
* Please refer to the License for details. You may not use this file except in compliance with the License.
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
* See LICENSE in the root of the software repository for the full text of the License.
*/
#include "error_manager.h"
namespace {
const char *const kErrorCodePath = "../conf/error_manager/error_code.json";
const char *const kErrorList = "error_info_list";
const char *const kErrCode = "ErrCode";
const char *const kErrMessage = "ErrMessage";
const char *const kArgList = "Arglist";
const uint64_t kLength = 2;
}
ErrorManager &ErrorManager::GetInstance() {
static ErrorManager instance;
return instance;
}
int ErrorManager::Init(std::string ) {
return 0;
}
int ErrorManager::Init() {
return 0;
}
int ErrorManager::ReportErrMessage(std::string , const std::map<std::string, std::string> &) {
return 0;
}
int ErrorManager::OutputErrMessage(int ) {
return 0;
}
int ErrorManager::OutputMessage(int ) {
return 0;
}
int ErrorManager::ParseJsonFile(std::string ) {
return 0;
}
int ErrorManager::ReadJsonFile(const std::string &, void *) {
return 0;
}
void ErrorManager::ATCReportErrMessage(std::string , const std::vector<std::string> &,
const std::vector<std::string> &) {
}
int ErrorManager::GetMstuneCompileFailedMsg(const std::string &, std::map<std::string,
std::vector<std::string>> &) {
return 0;
}
int32_t ErrorManager::ReportInterErrMessage(const std::string , const std::string &) {
return 0;
}
int32_t error_message::FormatErrorMessage(char_t *, size_t , const char_t *, ...) {
return 0;
}