Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_exception_translator_registry.h
Go to the documentation of this file.
1/*
2 * Created by Phil on 20/04/2011.
3 * Copyright 2011 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_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED
9#define TWOBLUECUBES_CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED
10
12#include <vector>
13#include <string>
14#include <memory>
15
16namespace Catch {
17
19 public:
21 virtual void registerTranslator( const IExceptionTranslator* translator );
22 std::string translateActiveException() const override;
23 std::string tryTranslators() const;
24
25 private:
26 std::vector<std::unique_ptr<IExceptionTranslator const>> m_translators;
27 };
28}
29
30#endif // TWOBLUECUBES_CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED
virtual void registerTranslator(const IExceptionTranslator *translator)