Working error system I believe

This commit is contained in:
NaifBanana
2025-11-09 23:36:12 -06:00
parent 9024cce1b4
commit c2cdfe7052
3 changed files with 76 additions and 28 deletions
+2 -3
View File
@@ -2,10 +2,9 @@
namespace nb {
// class Error
const std::string Error::type = "Error";
const ErrorCodeMap Error::ErrorMessages = ErrorCodeMap{
const ErrorCodeMap Error::ErrorMessages = {
{ErrorCodes::GENERAL, "General std::exception."},
{ErrorCodes::UNDEFINED, "Undefined / general error."},
{ErrorCodes::BADERRORCODE, "Unrecognized error code."}
};