summaryrefslogtreecommitdiff
path: root/src/file/errors/registrator.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/errors/registrator.hpp')
-rw-r--r--src/file/errors/registrator.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/file/errors/registrator.hpp b/src/file/errors/registrator.hpp
new file mode 100644
index 0000000..381db2f
--- /dev/null
+++ b/src/file/errors/registrator.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <map>
+
+#include "types/ierror.hpp"
+
+namespace smtp::file::errors
+{
+ class Registrator
+ {
+ public:
+ Registrator() = default;
+ ~Registrator() = default;
+
+ void Add( types::IErrorPtr const& error, int error_code );
+ void Process( types::SettingsType settings_type ) const;
+ private:
+ void DefaultProcess( int error_code ) const;
+ std::map< int, types::IErrorPtr > mErrorSet;
+ };
+}