From b925cf2d18ece6ef329c6b735c2bfe52bd0e5f94 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 17 Jul 2015 15:29:55 +0200 Subject: [PATCH] JSON: Mention exceptions in docs --- ucw-json/json.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ucw-json/json.h b/ucw-json/json.h index f51dd6a7..06be568a 100644 --- a/ucw-json/json.h +++ b/ucw-json/json.h @@ -246,6 +246,10 @@ struct json_node *json_object_get(struct json_node *n, const char *key); * and then repeat json_next_token(). If you are parsing huge JSON files, * you probably want to do json_push() first, then scan and process some * tokens, and then json_pop(). + * + * All parsing functions throw LibUCW exceptions of class `ucw.json.parse` + * upon errors. If you want to catch them, call the parser inside + * a transaction. ***/ /** Parses a JSON file from the given fastbuf stream. **/ -- 2.39.2