NullPointerException.hpp 738 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-06
  6. * Changed: 2022-06-29
  7. *
  8. * */
  9. #ifndef LS_STD_NULL_POINTER_EXCEPTION_HPP
  10. #define LS_STD_NULL_POINTER_EXCEPTION_HPP
  11. #include <exception>
  12. #include <ls_std/os/dynamic_goal.hpp>
  13. namespace ls
  14. {
  15. namespace std
  16. {
  17. namespace core
  18. {
  19. class DYNAMIC_GOAL NullPointerException : public ::std::exception
  20. {
  21. public:
  22. explicit NullPointerException() = default;
  23. const char *what() const noexcept override
  24. {
  25. return "NullPointerException thrown - reference is null!";
  26. }
  27. };
  28. }
  29. }
  30. }
  31. #endif