Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:04

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 #ifndef CATCH_GENERATOR_EXCEPTION_HPP_INCLUDED
0009 #define CATCH_GENERATOR_EXCEPTION_HPP_INCLUDED
0010 
0011 #include <exception>
0012 
0013 namespace Catch {
0014 
0015     // Exception type to be thrown when a Generator runs into an error,
0016     // e.g. it cannot initialize the first return value based on
0017     // runtime information
0018     class GeneratorException : public std::exception {
0019         const char* const m_msg = "";
0020 
0021     public:
0022         GeneratorException(const char* msg):
0023             m_msg(msg)
0024         {}
0025 
0026         const char* what() const noexcept override final;
0027     };
0028 
0029 } // end namespace Catch
0030 
0031 #endif // CATCH_GENERATOR_EXCEPTION_HPP_INCLUDED