Simplifying error design

This commit is contained in:
NaifBanana
2026-07-18 16:37:39 -05:00
parent e4b164f29a
commit abbae156a2
6 changed files with 75 additions and 33 deletions
+4 -9
View File
@@ -2,15 +2,10 @@
namespace nb {
const std::string Error<>::type = "nb::Error";
const ErrorCodeMap Error<>::ErrorMessages = {
{Error::Codes::STANDARD, "std::exception"},
{Error::Codes::UNDEFINED, "Error"}
};
//ErrorBase::
ErrorBase::ErrorBase(const std::exception& exception_) noexcept
: ErrorBase(Error<NoneType>(exception_)) {}
: ErrorBase(NBError(exception_)) {}
} // namespace nb
}