NotImplementedException.cpp 927 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-03-27
  6. * Changed: 2024-05-31
  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::string;
  16. NotImplementedException::NotImplementedException() : Exception("NotImplementedException")
  17. {}
  18. NotImplementedException::NotImplementedException(const string &_message) : NotImplementedException()
  19. {
  20. this->_setMessage(_message);
  21. }
  22. NotImplementedException::~NotImplementedException() noexcept = default;
  23. const char *NotImplementedException::what() const noexcept
  24. {
  25. return this->_getIdentifiedMessage("method is not implemented and should not be used!");
  26. }