TestException.hpp 683 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Co-Author: Claude Sonnet 4.6 (LLM)
  4. * Company: Lynar Studios
  5. * E-Mail: webmaster@lynarstudios.com
  6. * Created: 2023-05-18
  7. * Changed: 2026-06-23
  8. *
  9. * */
  10. #ifndef LS_STD_TEST_EXCEPTION_HPP
  11. #define LS_STD_TEST_EXCEPTION_HPP
  12. #include <exception>
  13. #include <string_view>
  14. namespace ls::standard::test
  15. {
  16. class TestException : public ::std::exception
  17. {
  18. public:
  19. explicit TestException(::std::string_view _message);
  20. ~TestException() noexcept override;
  21. [[nodiscard]] const char *what() const noexcept override;
  22. private:
  23. ::std::string_view message{};
  24. };
  25. }
  26. #endif