EventNotHandledException.cpp 880 B

123456789101112131415161718192021222324252627282930
  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/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::string;
  14. EventNotHandledException::EventNotHandledException() : Exception("EventNotHandledException")
  15. {}
  16. EventNotHandledException::EventNotHandledException(const string &_message) : EventNotHandledException()
  17. {
  18. this->_setMessage(_message);
  19. }
  20. EventNotHandledException::~EventNotHandledException() noexcept = default;
  21. const char *EventNotHandledException::what() const noexcept
  22. {
  23. return this->_getIdentifiedMessage("event was not handled - nothing happened!");
  24. }