NotImplementedException.cpp 944 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-27
  6. * Changed: 2023-05-19
  7. *
  8. * */
  9. #include <ls-std/core/exception/ExceptionMessage.hpp>
  10. #include <ls-std/core/exception/NotImplementedException.hpp>
  11. #include <string>
  12. using ls::std::core::Exception;
  13. using ls::std::core::ExceptionMessage;
  14. using ls::std::core::NotImplementedException;
  15. using std::move;
  16. using std::string;
  17. NotImplementedException::NotImplementedException() : Exception("NotImplementedException")
  18. {}
  19. NotImplementedException::NotImplementedException(const string &_message) : NotImplementedException()
  20. {
  21. this->_setMessage(_message);
  22. }
  23. NotImplementedException::~NotImplementedException() noexcept = default;
  24. const char *NotImplementedException::what() const noexcept
  25. {
  26. return this->_getIdentifiedMessage("method is not implemented and should not be used!");
  27. }