FileOperationException.hpp 630 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-15
  6. * Changed: 2021-04-23
  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_std
  14. {
  15. class FileOperationException : public std::exception
  16. {
  17. public:
  18. explicit FileOperationException() = default;
  19. const char *what() const noexcept override
  20. {
  21. return "FileOperationException thrown - file operation failed!";
  22. }
  23. };
  24. }
  25. #endif