Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_startup_exception_registry.cpp
Go to the documentation of this file.
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
11
12namespace Catch {
13void StartupExceptionRegistry::add( std::exception_ptr const& exception ) noexcept {
14 CATCH_TRY {
15 m_exceptions.push_back(exception);
17 // If we run out of memory during start-up there's really not a lot more we can do about it
18 std::terminate();
19 }
20 }
21
22 std::vector<std::exception_ptr> const& StartupExceptionRegistry::getExceptions() const noexcept {
23 return m_exceptions;
24 }
25
26} // end namespace Catch
#define CATCH_TRY
#define CATCH_CATCH_ALL
std::vector< std::exception_ptr > const & getExceptions() const noexcept
void add(std::exception_ptr const &exception) noexcept