summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFExc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDFExc.cc')
-rw-r--r--libqpdf/QPDFExc.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/libqpdf/QPDFExc.cc b/libqpdf/QPDFExc.cc
new file mode 100644
index 00000000..c7270677
--- /dev/null
+++ b/libqpdf/QPDFExc.cc
@@ -0,0 +1,20 @@
+
+#include <qpdf/QPDFExc.hh>
+
+#include <qpdf/QUtil.hh>
+
+QPDFExc::QPDFExc(std::string const& message) :
+ QEXC::General(message)
+{
+}
+
+QPDFExc::QPDFExc(std::string const& filename, int offset,
+ std::string const& message) :
+ QEXC::General(filename + ": offset " + QUtil::int_to_string(offset) +
+ ": " + message)
+{
+}
+
+QPDFExc::~QPDFExc() throw ()
+{
+}