FileOperationException.hpp 622 B

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