FileNotFoundException.hpp 772 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-17
  6. * Changed: 2022-05-16
  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. //TODO: pass parameters, use class, show class name
  15. namespace ls
  16. {
  17. namespace std
  18. {
  19. namespace core
  20. {
  21. class FileNotFoundException : public ::std::exception
  22. {
  23. public:
  24. FileNotFoundException() = default;
  25. const char *what() const noexcept override
  26. {
  27. return "FileNotFoundException thrown - file not found!";
  28. };
  29. };
  30. }
  31. }
  32. }
  33. #endif