TestExceptions.hpp
Go to the documentation of this file.
1 // @formatter:off
2 //
3 // Balau core C++ library
4 //
5 // Copyright (C) 2008 Bora Software (contact@borasoftware.com)
6 //
7 // Licensed under the Boost Software License - Version 1.0 - August 17th, 2003.
8 // See the LICENSE file for the full license text.
9 //
10 
16 
17 #ifndef COM_BORA_SOFTWARE__BALAU_EXCEPTION__TEST_EXCEPTIONS
18 #define COM_BORA_SOFTWARE__BALAU_EXCEPTION__TEST_EXCEPTIONS
19 
21 
22 namespace Balau::Exception {
23 
28  public: AssertionException(const char * file, int line, const std::string & st, const std::string & message_)
29  : BalauException(file, line, st, "Assertion", message_) {}
30 };
31 
36  public: TestRunnerException(const char * file, int line, const std::string & st, const std::string & message_)
37  : BalauException(file, line, st, "TestRunner", message_) {}
38 };
39 
40 } // namespace Balau::Exception
41 
42 #endif // COM_BORA_SOFTWARE__BALAU_EXCEPTION__TEST_EXCEPTIONS
All exception classes.
Definition: BalauException.hpp:50
Thrown by the test runner when there is a non test related error.
Definition: TestExceptions.hpp:35
The exception thrown by the test runner when an assertion fails.
Definition: TestExceptions.hpp:27
Base Balau exception classes.
Base class of all Balau exceptions.
Definition: BalauException.hpp:55