container: root: rewrite throw handler, refactor using common types

- Refactor using common types that were once internal
- Removes ancient macro approaches to C++20 solutions
- Changes `Exception` message type to use std::string
  * std::string_view isn't worthwhile in this context
This commit is contained in:
2025-11-19 16:37:46 -08:00
parent fa91fd02e8
commit ca59169116
11 changed files with 134 additions and 121 deletions

View File

@@ -25,7 +25,7 @@
#include <gtest/gtest.h>
#include <string_view>
#include <string>
#include "../../src/internal/type.hh"
@@ -50,8 +50,8 @@ namespace unit
struct Exception : public ::testing::Test
{
protected:
std::string_view what = "better to be caught than thrown";
using t_type = type::Exception::kType;
std::string what = "better to be caught than thrown";
using t_type = ::dfi::common::type::Exception::kType;
};
} // namespace unit
} // namespace tests