X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fresult%2Ffatal.hpp;h=8e6d13464616b93c0348625feb9db01b98ab66cf;hb=599f5fe51b935465234e8085e549915d9b131fd1;hp=39778ab82f777ccec205704d3648a2d6f38f8887;hpb=293e7b59e12ff6b95b5463614b09bc0158f14592;p=awesomized%2Flibmemcached diff --git a/libtest/result/fatal.hpp b/libtest/result/fatal.hpp index 39778ab8..8e6d1346 100644 --- a/libtest/result/fatal.hpp +++ b/libtest/result/fatal.hpp @@ -43,24 +43,16 @@ class fatal : public __test_result public: fatal(const char *file, int line, const char *func, ...); - ~fatal() throw() - { - } - - const char* what() const throw() - { - return &_error_message[0]; - } + fatal(const fatal&); // The following are just for unittesting the exception class - static bool is_disabled(); - static void disable(); - static void enable(); - static uint32_t disabled_counter(); - static void increment_disabled_counter(); + static bool is_disabled() throw(); + static void disable() throw(); + static void enable() throw(); + static uint32_t disabled_counter() throw(); + static void increment_disabled_counter() throw(); private: - vchar_t _error_message; }; } // namespace libtest