#include #include #include "DanExceptT.h" using namespace std; DansExceptionT::DansExceptionT(string w): logic_error(w) { try { msg = HEADER + w; } catch (const length_error & e) { msg = HEADER; } catch (const bad_alloc & e) { msg = HEADER; } } const char * DansExceptionT::what(void) const noexcept { return msg.c_str(); }