FileOperationException.hpp 719 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2022-05-09
  7. *
  8. * */
  9. #ifndef LS_STD_FILE_OPERATION_EXCEPTION_HPP
  10. #define LS_STD_FILE_OPERATION_EXCEPTION_HPP
  11. #include <exception>
  12. #include <string>
  13. namespace ls
  14. {
  15. namespace std
  16. {
  17. namespace core
  18. {
  19. class FileOperationException : public ::std::exception
  20. {
  21. public:
  22. explicit FileOperationException() = default;
  23. const char *what() const noexcept override
  24. {
  25. return "FileOperationException thrown - file operation failed!";
  26. }
  27. };
  28. }
  29. }
  30. }
  31. #endif