FileOperationException.hpp 980 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2024-09-11
  7. *
  8. * */
  9. #ifndef LS_STD_FILE_OPERATION_EXCEPTION_HPP
  10. #define LS_STD_FILE_OPERATION_EXCEPTION_HPP
  11. #include <ls-std/core/exception/Exception.hpp>
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. #include <string>
  14. /*
  15. * @doc: class(name: 'FileOperationException', package: 'core')
  16. * @doc: core.FileOperationException.description('This exception can be thrown in case a file could not be processed, like opened or being read.')
  17. * */
  18. namespace ls::std::core
  19. {
  20. class LS_STD_DYNAMIC_GOAL FileOperationException : public ls::std::core::Exception
  21. {
  22. public:
  23. FileOperationException();
  24. explicit FileOperationException(const ::std::string &_message);
  25. ~FileOperationException() noexcept override;
  26. [[nodiscard]] const char *what() const noexcept override;
  27. };
  28. }
  29. #endif