IllegalArgumentException.hpp 691 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-09
  6. * Changed: 2022-07-02
  7. *
  8. * */
  9. #ifndef LS_STD_ILLEGAL_ARGUMENT_EXCEPTION_HPP
  10. #define LS_STD_ILLEGAL_ARGUMENT_EXCEPTION_HPP
  11. #include <exception>
  12. namespace ls::std::core
  13. {
  14. class IllegalArgumentException : public ::std::exception
  15. {
  16. public:
  17. IllegalArgumentException() = default;
  18. //ToDo: possibility to pass argument name
  19. [[nodiscard]] const char *what() const noexcept override
  20. {
  21. return "IllegalArgumentException thrown - passed argument is not valid!";
  22. }
  23. };
  24. }
  25. #endif