File indexing completed on 2025-01-30 10:02:49
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED
0009 #define CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED
0010
0011 #include <catch2/interfaces/catch_interfaces_exception.hpp>
0012 #include <catch2/internal/catch_unique_ptr.hpp>
0013
0014 #include <vector>
0015 #include <string>
0016
0017 namespace Catch {
0018
0019 class ExceptionTranslatorRegistry : public IExceptionTranslatorRegistry {
0020 public:
0021 ~ExceptionTranslatorRegistry() override;
0022 void registerTranslator( Detail::unique_ptr<IExceptionTranslator>&& translator );
0023 std::string translateActiveException() const override;
0024
0025 private:
0026 ExceptionTranslators m_translators;
0027 };
0028 }
0029
0030 #endif