diff options
author | claiff <claiff@mail.ru> | 2022-09-30 12:21:43 +0300 |
---|---|---|
committer | claiff <claiff@mail.ru> | 2022-09-30 12:21:43 +0300 |
commit | 7e2843c706c1a6e033662c45957a76e01d167438 (patch) | |
tree | 2af4dacab9a5992d19abd385dbaaa9de40ffc891 /src/checker/errors/types | |
parent | 8d38861429c3544d10752fb0f6f9da436dee218f (diff) | |
parent | 7fcd35b7ad0fa2b0a49c5cdd9a62e23412bf8731 (diff) | |
download | obmc-sila-smtp-7e2843c706c1a6e033662c45957a76e01d167438.tar.xz |
Merge branch 'feature/checker/server'
Diffstat (limited to 'src/checker/errors/types')
-rw-r--r-- | src/checker/errors/types/imails_error.hpp | 14 | ||||
-rw-r--r-- | src/checker/errors/types/isettings_error.hpp | 7 |
2 files changed, 16 insertions, 5 deletions
diff --git a/src/checker/errors/types/imails_error.hpp b/src/checker/errors/types/imails_error.hpp index d696bbd..277f82e 100644 --- a/src/checker/errors/types/imails_error.hpp +++ b/src/checker/errors/types/imails_error.hpp @@ -5,15 +5,21 @@ namespace smtp::checker::errors::types { - class IError + class IErrorMails { public: - IError() = default; - virtual ~IError() = default; + IErrorMails() = default; + virtual ~IErrorMails() = default; + + std::string GetMethodName() const + { + static const std::string METHOD_NAME = "Check mails"; + return METHOD_NAME; + } virtual bool Check( std::string const& line ) const = 0; }; - using IErrorPtr = std::shared_ptr<IError>; + using IErrorMailsPtr = std::shared_ptr<IErrorMails>; } diff --git a/src/checker/errors/types/isettings_error.hpp b/src/checker/errors/types/isettings_error.hpp index 05f68e3..6355d79 100644 --- a/src/checker/errors/types/isettings_error.hpp +++ b/src/checker/errors/types/isettings_error.hpp @@ -16,7 +16,12 @@ namespace smtp::checker::errors::types IErrorSettings() = default; virtual ~IErrorSettings() = default; + std::string GetMethodName() const + { + static const std::string METHOD_NAME = "Check settings"; + return METHOD_NAME; + } virtual bool Check( manage::SettingsFileDataType const& line ) const = 0; }; using IErrorSettingsPtr = std::shared_ptr<IErrorSettings>; -}
\ No newline at end of file +} |