FileOperationException.cpp 785 B

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