aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-01-25 22:40:35 +0100
committerJay Berkenbilt <ejb@ql.org>2022-01-30 19:11:03 +0100
commit9373881cca0c781c66b2b50b962bdbc26364abe5 (patch)
tree50839b0d13d3178a3d7bd795de8fce39806e840e /include
parent0a354af02cf51aeb1602596988c8f826b47b3a81 (diff)
downloadqpdf-9373881cca0c781c66b2b50b962bdbc26364abe5.tar.zst
Add QPDFJob::ConfigError exception
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDFJob.hh10
1 files changed, 10 insertions, 0 deletions
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 <iostream>
#include <functional>
#include <memory>
+#include <stdexcept>
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();