diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 00:03:44 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-24 00:25:43 +0200 |
commit | 68e721981a1fe4f1398d811bb8ed99af0e100da8 (patch) | |
tree | d2990289f704e96bd8853891846119e02d0a12f0 /include | |
parent | 696ca53205fd725062b541fea88d9f36742a4c74 (diff) | |
download | qpdf-68e721981a1fe4f1398d811bb8ed99af0e100da8.tar.zst |
Add new QPDF::warn that takes most of QPDFExc's arguments
Diffstat (limited to 'include')
-rw-r--r-- | include/qpdf/QPDF.hh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh index e704c2f8..bbbb896e 100644 --- a/include/qpdf/QPDF.hh +++ b/include/qpdf/QPDF.hh @@ -262,6 +262,16 @@ class QPDF // rules, and it will be available with getWarnings(). QPDF_DLL void warn(QPDFExc const& e); + // Same as above but creates the QPDFExc object using the + // arguments passed to warn. The filename argument to QPDFExc is + // omitted. This method uses the filename associated with the QPDF + // object. + QPDF_DLL + void warn( + qpdf_error_code_e error_code, + std::string const& object, + qpdf_offset_t offset, + std::string const& message); QPDF_DLL std::string getFilename() const; |