aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.core/errc.cc
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
committerLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
commit2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 (patch)
tree54d37ffadf8e677938d9b7a28e4e9b71be1e75c1 /nihil.core/errc.cc
parent36427c0966faa7aecd586b397ed9b845f18172f5 (diff)
downloadnihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.gz
nihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.bz2
add nihil.std
Diffstat (limited to 'nihil.core/errc.cc')
-rw-r--r--nihil.core/errc.cc16
1 files changed, 7 insertions, 9 deletions
diff --git a/nihil.core/errc.cc b/nihil.core/errc.cc
index 35c9d8f..411ad66 100644
--- a/nihil.core/errc.cc
+++ b/nihil.core/errc.cc
@@ -1,14 +1,8 @@
-/*
- * This source code is released into the public domain.
- */
-
-module;
-
-#include <string>
-#include <system_error>
-
+// This source code is released into the public domain.
module nihil.core;
+import nihil.std;
+
namespace nihil {
struct nihil_error_category final : std::error_category {
@@ -43,6 +37,10 @@ auto nihil_error_category::message(int err) const -> std::string
return "Empty string is not permitted";
case errc::invalid_unit:
return "Invalid unit specifier";
+ case errc::failed_to_create_object:
+ return "Failed to create UCL object";
+ case errc::type_mismatch:
+ return "UCL type does not match expected type";
default:
return "Undefined error";
}