IllegalArithmeticOperationException.hpp 662 B

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