TestException.hpp 635 B

123456789101112131415161718192021222324252627282930313233
  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. #ifndef LS_STD_TEST_EXCEPTION_HPP
  10. #define LS_STD_TEST_EXCEPTION_HPP
  11. #include <exception>
  12. #include <string_view>
  13. namespace ls::std::test
  14. {
  15. class TestException : public ::std::exception
  16. {
  17. public:
  18. explicit TestException(::std::string_view _message);
  19. ~TestException() noexcept override;
  20. [[nodiscard]] const char *what() const noexcept override;
  21. private:
  22. ::std::string_view message{};
  23. };
  24. }
  25. #endif