FileNotFoundException.hpp 770 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-17
  6. * Changed: 2023-02-07
  7. *
  8. * */
  9. #ifndef LS_STD_FILE_NOT_FOUND_EXCEPTION_HPP
  10. #define LS_STD_FILE_NOT_FOUND_EXCEPTION_HPP
  11. #include <cstring>
  12. #include <exception>
  13. #include <ls-std/os/dynamic-goal.hpp>
  14. #include <string>
  15. namespace ls::std::core
  16. {
  17. class LS_STD_DYNAMIC_GOAL FileNotFoundException : public ::std::exception
  18. {
  19. public:
  20. FileNotFoundException();
  21. explicit FileNotFoundException(::std::string _message);
  22. ~FileNotFoundException() override;
  23. [[nodiscard]] const char *what() const noexcept override;
  24. private:
  25. ::std::string message{};
  26. };
  27. }
  28. #endif