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
11
#include "
catch_interfaces_exception.h
"
12
#include <vector>
13
#include <string>
14
#include <memory>
15
16
namespace
Catch
{
17
18
class
ExceptionTranslatorRegistry
:
public
IExceptionTranslatorRegistry
{
19
public
:
20
~ExceptionTranslatorRegistry
();
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
catch_interfaces_exception.h
Catch::ExceptionTranslatorRegistry
Definition
catch_exception_translator_registry.h:18
Catch::ExceptionTranslatorRegistry::translateActiveException
std::string translateActiveException() const override
Definition
catch_exception_translator_registry.cpp:79
Catch::ExceptionTranslatorRegistry::registerTranslator
virtual void registerTranslator(const IExceptionTranslator *translator)
Definition
catch_exception_translator_registry.cpp:23
Catch::ExceptionTranslatorRegistry::~ExceptionTranslatorRegistry
~ExceptionTranslatorRegistry()
Definition
catch_exception_translator_registry.cpp:20
Catch::ExceptionTranslatorRegistry::tryTranslators
std::string tryTranslators() const
Definition
catch_exception_translator_registry.cpp:83
Catch
Definition
231-Cfg-OutputStreams.cpp:32
Catch::IExceptionTranslator
Definition
catch.hpp:2676
Catch::IExceptionTranslatorRegistry
Definition
catch.hpp:2681
libraries
sys-vm
external
Catch2
include
internal
catch_exception_translator_registry.h
Generated by
1.12.0