FileNotFoundException.hpp 645 B

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