Gromacs
2022.2
|
Exception classes for errors in tests.
Classes | |
class | gmx::test::TestException |
Exception class for reporting errors in tests. More... | |
Macros | |
#define | GMX_THROW_WRAPPER_TESTEXCEPTION(e) throw ::gmx::test::TestException(e) |
Macro for throwing a TestException that wraps another exception. More... | |
#define GMX_THROW_WRAPPER_TESTEXCEPTION | ( | e | ) | throw ::gmx::test::TestException(e) |
Macro for throwing a TestException that wraps another exception.
[in] | e | Exception object to wrap. |
This macro is intended for wrapping exceptions thrown by Gromacs methods that are called from a test for the test's internal purposes. It wraps the exception in a TestException to make it possible to tell from the type of the exception whether the exception was thrown by the code under test, or by the test code itself.
e
should evaluate to an instance of an object derived from GromacsException.
Typical usage in test code: