add new exception logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user