EventNotHandledException.cpp 897 B

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