FileNotFoundException.hpp 684 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-17
  6. * Changed: 2021-04-23
  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_std
  16. {
  17. class FileNotFoundException : public std::exception
  18. {
  19. public:
  20. FileNotFoundException() = default;
  21. const char *what() const noexcept override
  22. {
  23. return "FileNotFoundException thrown - file not found!";
  24. };
  25. };
  26. }
  27. #endif