Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:02:49

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
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 // CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED