add new exception logic

This commit is contained in:
2025-09-19 00:39:21 +03:00
parent a76aadc068
commit 1604577286
4 changed files with 36 additions and 29 deletions

View File

@@ -17,25 +17,18 @@ auto main(int argc, char *argv[]) -> int
e.set("double", 1.23);
e.set("file", std::filesystem::path("/tes/path/to_file.txt"));
// struct user_type
// {
// int i = 1;
// std::string str = "user type";
//
// auto get_logger_data()
// {
// return std::make_tuple(i, str);
// }
// } ut;
//
// e.set("user type", ut);
throw e;
}
catch(hack::exception& e)
{
hack::log().no_info();
hack::error()(e);
hack::log()(e);
hack::log().reset();
}
hack::log().reset();
return 0;
}