IncompleteJsonException.hpp 649 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: 2022-07-02
  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::core
  13. {
  14. class IncompleteJsonException : public ::std::exception
  15. {
  16. public:
  17. explicit IncompleteJsonException() = default;
  18. [[nodiscard]] const char *what() const noexcept override
  19. {
  20. return "IncompleteJsonException thrown - this JSON string is incomplete.";
  21. }
  22. };
  23. }
  24. #endif