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 #if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
19     public:
20         void add(std::exception_ptr const& exception) noexcept;
21         std::vector<std::exception_ptr> const& getExceptions() const noexcept;
22     private:
23         std::vector<std::exception_ptr> m_exceptions;
24 #endif
25     };
26 
27 } // end namespace Catch
28 
29 #endif // TWOBLUECUBES_CATCH_STARTUP_EXCEPTION_REGISTRY_H_INCLUDED
30