1 #ifndef TUT_EXCEPTION_H_GUARD
2 #define TUT_EXCEPTION_H_GUARD
5 #include "tut_result.hpp"
15 explicit tut_error(
const std::string& msg)
25 virtual std::string type()
const
27 return "tut::tut_error";
30 const char* what()
const throw()
32 return err_msg.c_str();
42 const std::string err_msg;
55 virtual std::string type()
const
57 return "tut::no_such_group";
75 virtual std::string type()
const
77 return "tut::no_such_test";
91 explicit bad_ctor(
const std::string& msg)
98 return test_result::ex_ctor;
101 virtual std::string type()
const
103 return "tut::bad_ctor";
116 explicit failure(
const std::string& msg)
126 virtual std::string type()
const
128 return "tut::failure";
141 explicit warning(
const std::string& msg)
151 virtual std::string type()
const
153 return "tut::warning";
166 explicit seh(
const std::string& msg)
176 virtual std::string type()
const
198 return test_result::rethrown;
201 virtual std::string type()
const
203 return "tut::rethrown";
215 explicit skipped(
const std::string& msg)
222 return test_result::skipped;
225 virtual std::string type()
const
227 return "tut::skipped";
Definition: tut_exception.hpp:13
Definition: tut_exception.hpp:68
Definition: tut_exception.hpp:48
Definition: tut_exception.hpp:213
Definition: tut_exception.hpp:114
Definition: tut_exception.hpp:164
result_type
Definition: tut_result.hpp:89
Definition: tut_exception.hpp:189
test finished successfully, but test destructor throwed
Definition: tut_result.hpp:94
Definition: tut_exception.hpp:89
Definition: tut_exception.hpp:139
test failed with ensure() or fail() methods
Definition: tut_result.hpp:92
std::string message
Definition: tut_result.hpp:107
Definition: tut_result.hpp:69
test forced test application to terminate abnormally
Definition: tut_result.hpp:95
test throwed an exceptions
Definition: tut_result.hpp:93