Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::ExceptionTranslatorRegistry Class Reference

#include <catch_exception_translator_registry.h>

Inheritance diagram for Catch::ExceptionTranslatorRegistry:
Collaboration diagram for Catch::ExceptionTranslatorRegistry:

Public Member Functions

 ~ExceptionTranslatorRegistry ()
 
virtual void registerTranslator (const IExceptionTranslator *translator)
 
std::string translateActiveException () const override
 
std::string tryTranslators () const
 
- Public Member Functions inherited from Catch::IExceptionTranslatorRegistry
virtual ~IExceptionTranslatorRegistry ()
 
virtual ~IExceptionTranslatorRegistry ()
 

Detailed Description

Definition at line 18 of file catch_exception_translator_registry.h.

Constructor & Destructor Documentation

◆ ~ExceptionTranslatorRegistry()

Catch::ExceptionTranslatorRegistry::~ExceptionTranslatorRegistry ( )

Definition at line 20 of file catch_exception_translator_registry.cpp.

20 {
21 }

Member Function Documentation

◆ registerTranslator()

void Catch::ExceptionTranslatorRegistry::registerTranslator ( const IExceptionTranslator * translator)
virtual

Definition at line 23 of file catch_exception_translator_registry.cpp.

23 {
24 m_translators.push_back( std::unique_ptr<const IExceptionTranslator>( translator ) );
25 }

◆ translateActiveException()

std::string Catch::ExceptionTranslatorRegistry::translateActiveException ( ) const
overridevirtual

Implements Catch::IExceptionTranslatorRegistry.

Definition at line 79 of file catch_exception_translator_registry.cpp.

79 {
80 CATCH_INTERNAL_ERROR("Attempted to translate active exception under CATCH_CONFIG_DISABLE_EXCEPTIONS!");
81 }
#define CATCH_INTERNAL_ERROR(msg)

◆ tryTranslators()

std::string Catch::ExceptionTranslatorRegistry::tryTranslators ( ) const

Definition at line 83 of file catch_exception_translator_registry.cpp.

83 {
84 CATCH_INTERNAL_ERROR("Attempted to use exception translators under CATCH_CONFIG_DISABLE_EXCEPTIONS!");
85 }

The documentation for this class was generated from the following files: