From 9373881cca0c781c66b2b50b962bdbc26364abe5 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 25 Jan 2022 16:40:35 -0500 Subject: Add QPDFJob::ConfigError exception --- include/qpdf/QPDFJob.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/qpdf/QPDFJob.hh b/include/qpdf/QPDFJob.hh index 734f5f45..853f7969 100644 --- a/include/qpdf/QPDFJob.hh +++ b/include/qpdf/QPDFJob.hh @@ -36,12 +36,22 @@ #include #include #include +#include class QPDFWriter; class QPDFJob { public: + // ConfigError exception is thrown if there are any usage-like + // errors when calling Config methods. + class QPDF_DLL_CLASS ConfigError: public std::runtime_error + { + public: + QPDF_DLL + ConfigError(std::string const&); + }; + QPDF_DLL QPDFJob(); -- cgit v1.2.3-54-g00ecf