Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_generator_exception.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-02-14 10:32:30 +0100
committerMartin Hořeňovský2020-02-14 16:15:47 +0100
commitdb1a0465dc39e8aed36852984c14072192750b1d (patch)
tree33871677f9b2e5177472bcee92a9f107643ed74e /src/catch2/catch_generator_exception.cpp
parentb2a6523d85ec5f4614acdd3176c2f8ed7a669f7b (diff)
downloadcatch3-db1a0465dc39e8aed36852984c14072192750b1d.tar.gz
Outline GeneratorException from generators header
Diffstat (limited to 'src/catch2/catch_generator_exception.cpp')
-rw-r--r--src/catch2/catch_generator_exception.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/catch2/catch_generator_exception.cpp b/src/catch2/catch_generator_exception.cpp
new file mode 100644
index 00000000..9ec5d55b
--- /dev/null
+++ b/src/catch2/catch_generator_exception.cpp
@@ -0,0 +1,14 @@
+/*
+ * Distributed under the Boost Software License, Version 1.0. (See accompanying
+ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ */
+
+#include <catch2/catch_generator_exception.hpp>
+
+namespace Catch {
+
+ const char* GeneratorException::what() const noexcept {
+ return m_msg;
+ }
+
+} // end namespace Catch