diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-07-27 13:41:56 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-07-27 13:41:56 +0300 |
commit | 1761cf17008788a7ec126e953ffe46c41721d168 (patch) | |
tree | decb73843d5195cce15a243badf6614f1bf04909 /library/cpp/json/common/defs.h | |
parent | 114da2ea902184524cac007509fbe899d8154b05 (diff) | |
download | ydb-1761cf17008788a7ec126e953ffe46c41721d168.tar.gz |
add TryNodeFromJsonString: ability to parse object and check errors without try-catch
Diffstat (limited to 'library/cpp/json/common/defs.h')
-rw-r--r-- | library/cpp/json/common/defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/json/common/defs.h b/library/cpp/json/common/defs.h index d3c8761bcc..ae3985508b 100644 --- a/library/cpp/json/common/defs.h +++ b/library/cpp/json/common/defs.h @@ -32,7 +32,11 @@ namespace NJson { virtual bool OnEnd(); virtual void OnError(size_t off, TStringBuf reason); + bool GetHaveErrors() const { + return HaveErrors; + } protected: bool ThrowException; + bool HaveErrors = false; }; } |