IllegalArgumentException.cpp 814 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2023-02-04
  6. * Changed: 2024-05-31
  7. *
  8. * */
  9. #include <ls-std/core/exception/IllegalArgumentException.hpp>
  10. using ls::std::core::Exception;
  11. using ls::std::core::IllegalArgumentException;
  12. using std::string;
  13. IllegalArgumentException::IllegalArgumentException() : Exception("IllegalArgumentException")
  14. {}
  15. IllegalArgumentException::IllegalArgumentException(const string &_message) : IllegalArgumentException()
  16. {
  17. this->_setMessage(_message);
  18. }
  19. IllegalArgumentException::~IllegalArgumentException() noexcept = default;
  20. const char *IllegalArgumentException::what() const noexcept
  21. {
  22. return this->_getIdentifiedMessage("passed argument is not valid!");
  23. }