#pragma once #include #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; }; }