summaryrefslogtreecommitdiff
path: root/src/core/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/error.h')
-rw-r--r--src/core/error.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/error.h b/src/core/error.h
index 32eab1e..493147f 100644
--- a/src/core/error.h
+++ b/src/core/error.h
@@ -66,8 +66,13 @@ private:
bool is_critical;
};
- std::vector<error_info> infos;
+ std::vector<error_info> infos_;
public:
+ error_registry();
+
+ SAW_FORBID_COPY(error_registry);
+ SAW_FORBID_MOVE(error_registry);
+
error_or<error::code> search_id(const std::string_view& desc) const;
error_or<error::code> search_or_register_id(const std::string_view& desc, bool is_critical);