updated build system

This commit is contained in:
2024-08-02 11:24:30 -05:00
parent b695200123
commit e66b783df8
4 changed files with 94 additions and 39 deletions

View File

@ -23,59 +23,71 @@
#define INCLUDE_UTILS_ERROR_UTILS_HPP_
#include "types/repertory.hpp"
#include "utils/error.hpp"
namespace repertory::utils::error {
void raise_error(std::string function, std::string_view msg);
void raise_error(std::string_view function, std::string_view msg);
void raise_error(std::string function, const api_error &err,
void raise_error(std::string_view function, const api_error &err,
std::string_view msg);
void raise_error(std::string function, const std::exception &exception,
void raise_error(std::string_view function, const std::exception &exception);
void raise_error(std::string_view function, const std::exception &exception,
std::string_view msg);
void raise_error(std::string function, std::int64_t err, std::string_view msg);
void raise_error(std::string_view function, std::int64_t err,
std::string_view msg);
void raise_error(std::string function, const json &err, std::string_view msg);
void raise_error(std::string_view function, const json &err,
std::string_view msg);
void raise_error(std::string function, const api_error &err,
void raise_error(std::string_view function, const api_error &err,
std::string_view file_path, std::string_view msg);
void raise_error(std::string function, std::int64_t err,
void raise_error(std::string_view function, std::int64_t err,
std::string_view file_path, std::string_view msg);
void raise_error(std::string function, const std::exception &exception,
void raise_error(std::string_view function, const std::exception &exception,
std::string_view file_path, std::string_view msg);
void raise_api_path_error(std::string function, std::string_view api_path,
void raise_api_path_error(std::string_view function, std::string_view api_path,
const api_error &err, std::string_view msg);
void raise_api_path_error(std::string function, std::string_view api_path,
void raise_api_path_error(std::string_view function, std::string_view api_path,
const std::exception &exception);
void raise_api_path_error(std::string_view function, std::string_view api_path,
const std::exception &exception,
std::string_view msg);
void raise_api_path_error(std::string function, std::string_view api_path,
void raise_api_path_error(std::string_view function, std::string_view api_path,
std::int64_t err, std::string_view msg);
void raise_api_path_error(std::string function, std::string_view api_path,
void raise_api_path_error(std::string_view function, std::string_view api_path,
const json &err, std::string_view msg);
void raise_api_path_error(std::string function, std::string_view api_path,
void raise_api_path_error(std::string_view function, std::string_view api_path,
std::string_view source_path, const api_error &err,
std::string_view msg);
void raise_api_path_error(std::string function, std::string_view api_path,
void raise_api_path_error(std::string_view function, std::string_view api_path,
std::string_view source_path, std::int64_t err,
std::string_view msg);
void raise_api_path_error(std::string function, std::string_view api_path,
void raise_api_path_error(std::string_view function, std::string_view api_path,
std::string_view source_path,
const std::exception &exception,
std::string_view msg);
void raise_url_error(std::string function, std::string_view url, CURLcode err,
std::string_view msg);
void raise_url_error(std::string_view function, std::string_view url,
CURLcode err, std::string_view msg);
void raise_url_error(std::string function, std::string_view url,
void raise_url_error(std::string_view function, std::string_view url,
std::string_view source_path,
const std::exception &exception);
void raise_url_error(std::string_view function, std::string_view url,
std::string_view source_path,
const std::exception &exception, std::string_view msg);