TestException.cpp 538 B

12345678910111213141516171819202122232425
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-05-18
  6. * Changed: 2023-05-18
  7. *
  8. * */
  9. #include "TestException.hpp"
  10. #include <string>
  11. using ls::std::test::TestException;
  12. using std::string;
  13. using std::string_view;
  14. TestException::TestException(string_view _message) : message(_message)
  15. {}
  16. TestException::~TestException() noexcept = default;
  17. const char *TestException::what() const noexcept
  18. {
  19. return this->message.data();
  20. }