EventNotSubscribedException.hpp 634 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2021-05-27
  6. * Changed: 2021-05-27
  7. *
  8. * */
  9. #ifndef LS_STD_EVENT_NOT_SUBSCRIBED_EXCEPTION_HPP
  10. #define LS_STD_EVENT_NOT_SUBSCRIBED_EXCEPTION_HPP
  11. #include <exception>
  12. namespace ls_std
  13. {
  14. class EventNotSubscribedException : public std::exception
  15. {
  16. public:
  17. EventNotSubscribedException() = default;
  18. const char *what() const noexcept override
  19. {
  20. return "EventNotSubscribedException thrown - event was not subscribed!";
  21. };
  22. };
  23. }
  24. #endif