FileNotFoundException.hpp 823 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-17
  6. * Changed: 2022-06-29
  7. *
  8. * */
  9. #ifndef LS_STD_FILE_NOT_FOUND_EXCEPTION_HPP
  10. #define LS_STD_FILE_NOT_FOUND_EXCEPTION_HPP
  11. #include <exception>
  12. #include <string>
  13. #include <cstring>
  14. #include <ls_std/os/dynamic_goal.hpp>
  15. //TODO: pass parameters, use class, show class name
  16. namespace ls
  17. {
  18. namespace std
  19. {
  20. namespace core
  21. {
  22. class DYNAMIC_GOAL FileNotFoundException : public ::std::exception
  23. {
  24. public:
  25. FileNotFoundException() = default;
  26. const char *what() const noexcept override
  27. {
  28. return "FileNotFoundException thrown - file not found!";
  29. };
  30. };
  31. }
  32. }
  33. }
  34. #endif