IncompleteJsonException.hpp 983 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2021-04-30
  6. * Changed: 2024-09-11
  7. *
  8. * */
  9. #ifndef LS_STD_INCOMPLETE_JSON_EXCEPTION_HPP
  10. #define LS_STD_INCOMPLETE_JSON_EXCEPTION_HPP
  11. #include <ls-std/core/exception/Exception.hpp>
  12. #include <ls-std/os/dynamic-goal.hpp>
  13. #include <string>
  14. /*
  15. * @doc: class(name: 'IncompleteJsonException', package: 'core')
  16. * @doc: core.IncompleteJsonException.description('This exception can be thrown when a passed JSON is incomplete - e.g. if a key is missing.')
  17. * */
  18. namespace ls::std::core
  19. {
  20. class LS_STD_DYNAMIC_GOAL IncompleteJsonException : public ls::std::core::Exception
  21. {
  22. public:
  23. IncompleteJsonException();
  24. explicit IncompleteJsonException(const ::std::string &_message);
  25. ~IncompleteJsonException() noexcept override;
  26. [[nodiscard]] const char *what() const noexcept override;
  27. };
  28. }
  29. #endif