aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-12-10 17:09:42 +0100
committerJay Berkenbilt <ejb@ql.org>2021-12-10 18:16:02 +0100
commit72c10d8617c799432e28dabf1679b1a6f5245c02 (patch)
tree6dd53c3979e4ef3cd159af030abee1fa39436656 /ChangeLog
parent3340dbe9761ef35d580d77a73e17d204579624f1 (diff)
downloadqpdf-72c10d8617c799432e28dabf1679b1a6f5245c02.tar.zst
C API: overhaul error handling
* Handle error conditions that occur when using the object handle interfaces. In the past, some exceptions were not correctly converted to errors or warnings. * Add more detailed information to qpdf-c.h * Make it possible to work more explicitly with uninitialized objects
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 299b6272..341ae8e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2021-12-10 Jay Berkenbilt <ejb@ql.org>
+
+ * C API: Overhaul how errors are handle the C API's object handle
+ interfaces. Clarify documentation regarding object accessors and
+ how type errors and warnings are handled. Many cases that used to
+ crash code that used the C API can now be trapped and will be
+ written stderr if not trapped. The new method
+ qpdf_register_oh_error_handler can be used to specifically handle
+ errors that occur when accessing object handles. See qpdf-c.h for
+ details.
+
+ * C API: Add qpdf_oh_new_uninitialized to explicitly create
+ uninitialized object handles.
+
+ * Add new error code qpdf_e_object that is used for exceptions
+ (including warnings) that are caused by using QPDFObjectHandle
+ methods on object handles of the wrong type.
+
2021-12-02 Jay Berkenbilt <ejb@ql.org>
* C API: Add qpdf_oh_is_initialized.