IncompleteJsonException.cpp 805 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/IncompleteJsonException.hpp>
  10. using ls::std::core::Exception;
  11. using ls::std::core::IncompleteJsonException;
  12. using std::string;
  13. IncompleteJsonException::IncompleteJsonException() : Exception("IncompleteJsonException")
  14. {}
  15. IncompleteJsonException::IncompleteJsonException(const string &_message) : IncompleteJsonException()
  16. {
  17. this->_setMessage(_message);
  18. }
  19. IncompleteJsonException::~IncompleteJsonException() noexcept = default;
  20. const char *IncompleteJsonException::what() const noexcept
  21. {
  22. return this->_getIdentifiedMessage("this JSON string is incomplete.");
  23. }