summaryrefslogtreecommitdiff
path: root/src/file/errors/types/ierror.hpp
diff options
context:
space:
mode:
authorclaiff <claiff@mail.ru>2022-10-06 12:26:45 +0300
committerclaiff <claiff@mail.ru>2022-10-06 12:26:45 +0300
commitda5f91a0ce15351a82beb061c3ccc965164529bc (patch)
tree1f4cd2d1e2f8cf2442d055c519d06c6e0692febc /src/file/errors/types/ierror.hpp
parent8edef99a5b52643e0b919c424357752cbbc9a8dd (diff)
downloadobmc-sila-smtp-da5f91a0ce15351a82beb061c3ccc965164529bc.tar.xz
create settings on startbugfix/proxy_file_reader
Diffstat (limited to 'src/file/errors/types/ierror.hpp')
-rw-r--r--src/file/errors/types/ierror.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/file/errors/types/ierror.hpp b/src/file/errors/types/ierror.hpp
new file mode 100644
index 0000000..6a47ddb
--- /dev/null
+++ b/src/file/errors/types/ierror.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <memory>
+
+namespace smtp::file::errors::types
+{
+ enum class SettingsType
+ {
+ Server,
+ Mail
+ };
+
+ class IError
+ {
+ public:
+ virtual ~IError() = default;
+
+ virtual void Process( SettingsType settings_type ) const = 0;
+ };
+ using IErrorPtr = std::shared_ptr<IError>;
+}