1 /* 2 * Created by Martin on 04/06/2017. 3 * Copyright 2017 Two Blue Cubes Ltd. All rights reserved. 4 * 5 * Distributed under the Boost Software License, Version 1.0. (See accompanying 6 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 7 */ 8 #ifndef TWOBLUECUBES_CATCH_STARTUP_EXCEPTION_REGISTRY_H_INCLUDED 9 #define TWOBLUECUBES_CATCH_STARTUP_EXCEPTION_REGISTRY_H_INCLUDED 10 11 12 #include <vector> 13 #include <exception> 14 15 namespace Catch { 16 17 class StartupExceptionRegistry { 18 public: 19 void add(std::exception_ptr const& exception) noexcept; 20 std::vector<std::exception_ptr> const& getExceptions() const noexcept; 21 private: 22 std::vector<std::exception_ptr> m_exceptions; 23 }; 24 25 } // end namespace Catch 26 27 #endif // TWOBLUECUBES_CATCH_STARTUP_EXCEPTION_REGISTRY_H_INCLUDED 28