IllegalArithmeticOperationException.hpp 802 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-07
  6. * Changed: 2022-06-29
  7. *
  8. * */
  9. #ifndef LS_STD_ILLEGAL_OPERATION_EXCEPTION_HPP
  10. #define LS_STD_ILLEGAL_OPERATION_EXCEPTION_HPP
  11. #include <exception>
  12. #include <ls_std/os/dynamic_goal.hpp>
  13. namespace ls
  14. {
  15. namespace std
  16. {
  17. namespace core
  18. {
  19. class DYNAMIC_GOAL IllegalArithmeticOperationException : public ::std::exception
  20. {
  21. public:
  22. IllegalArithmeticOperationException() = default;
  23. const char *what() const noexcept override
  24. {
  25. return "IllegalArithmeticOperationException thrown - arithmetic operation is not allowed!";
  26. }
  27. };
  28. }
  29. }
  30. }
  31. #endif