mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-31 17:07:52 +00:00

This commit also strips the old copyright comment header in touched files, as those will also be replaced with a more standardized and machine-friendly version.
22 lines
678 B
C++
22 lines
678 B
C++
#ifndef CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED
|
|
#define CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED
|
|
|
|
#include <catch2/interfaces/catch_interfaces_exception.hpp>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace Catch {
|
|
|
|
class ExceptionTranslatorRegistry : public IExceptionTranslatorRegistry {
|
|
public:
|
|
~ExceptionTranslatorRegistry();
|
|
virtual void registerTranslator( const IExceptionTranslator* translator );
|
|
std::string translateActiveException() const override;
|
|
std::string tryTranslators() const;
|
|
|
|
private:
|
|
ExceptionTranslators m_translators;
|
|
};
|
|
}
|
|
|
|
#endif // CATCH_EXCEPTION_TRANSLATOR_REGISTRY_HPP_INCLUDED
|