diff options
Diffstat (limited to 'libqpdf/QPDFExc.cc')
-rw-r--r-- | libqpdf/QPDFExc.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libqpdf/QPDFExc.cc b/libqpdf/QPDFExc.cc index bac52e03..ddd175ed 100644 --- a/libqpdf/QPDFExc.cc +++ b/libqpdf/QPDFExc.cc @@ -1,19 +1,17 @@ - #include <qpdf/QPDFExc.hh> - #include <qpdf/QUtil.hh> DLL_EXPORT QPDFExc::QPDFExc(std::string const& message) : - QEXC::General(message) + std::runtime_error(message) { } DLL_EXPORT QPDFExc::QPDFExc(std::string const& filename, int offset, std::string const& message) : - QEXC::General(filename + ": offset " + QUtil::int_to_string(offset) + - ": " + message) + std::runtime_error(filename + ": offset " + QUtil::int_to_string(offset) + + ": " + message) { } |