IllegalArithmeticOperationException.hpp 751 B

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