IncompleteJsonException.hpp 626 B

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