FileNotFoundException.hpp 578 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-17
  6. * Changed: 2020-08-17
  7. *
  8. * */
  9. #ifndef FILE_NOT_FOUND_EXCEPTION_HPP
  10. #define FILE_NOT_FOUND_EXCEPTION_HPP
  11. #include <exception>
  12. #include <string>
  13. #include <cstring>
  14. namespace ls_std {
  15. class FileNotFoundException : public std::exception {
  16. public:
  17. FileNotFoundException() = default;
  18. const char *what() const noexcept override {
  19. return "file not found!";
  20. };
  21. };
  22. }
  23. #endif