FileNotFoundException.cpp 784 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-04
  6. * Changed: 2025-12-21
  7. *
  8. * */
  9. #include <ls-std/core/exception/FileNotFoundException.hpp>
  10. using ls::std::core::Exception;
  11. using ls::std::core::FileNotFoundException;
  12. using std::move;
  13. using std::string;
  14. FileNotFoundException::FileNotFoundException() : Exception("FileNotFoundException")
  15. {}
  16. FileNotFoundException::FileNotFoundException(const string &_message) : FileNotFoundException()
  17. {
  18. this->_setMessage(_message);
  19. }
  20. FileNotFoundException::~FileNotFoundException() noexcept = default;
  21. const char *FileNotFoundException::what() const noexcept
  22. {
  23. return this->_getIdentifiedMessage("file not found!");
  24. }