diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-09-26 20:36:04 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-09-26 20:36:04 +0200 |
commit | f3d7c26de1f575a14017a161ad1fdd2b93385e03 (patch) | |
tree | 065d6b0e12534a7371974bfb17e77c91d7b217d6 /libqpdf/QPDFWriter.cc | |
parent | 64546cfa0ddc2cf4c91e0865e979947c6b20ca46 (diff) | |
download | qpdf-f3d7c26de1f575a14017a161ad1fdd2b93385e03.tar.zst |
removed qexc; non-compatible ABI change
git-svn-id: svn+q:///qpdf/trunk@709 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDFWriter.cc')
-rw-r--r-- | libqpdf/QPDFWriter.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libqpdf/QPDFWriter.cc b/libqpdf/QPDFWriter.cc index b4b4b6d2..88dc9e8f 100644 --- a/libqpdf/QPDFWriter.cc +++ b/libqpdf/QPDFWriter.cc @@ -1,4 +1,3 @@ - #include <qpdf/QPDFWriter.hh> #include <assert.h> @@ -479,8 +478,8 @@ QPDFWriter::enqueueObject(QPDFObjectHandle object) } else if (object.isScalar()) { - throw QEXC::Internal( - "QPDFWriter::enqueueObject: indirect scalar: " + + throw std::logic_error( + "INTERNAL ERROR: QPDFWriter::enqueueObject: indirect scalar: " + std::string(this->filename) + " " + QUtil::int_to_string(object.getObjectID()) + " " + QUtil::int_to_string(object.getGeneration())); @@ -559,8 +558,8 @@ QPDFWriter::unparseChild(QPDFObjectHandle child, int level, int flags) { if (child.isScalar()) { - throw QEXC::Internal( - "QPDFWriter::unparseChild: indirect scalar: " + + throw std::logic_error( + "INTERNAL ERROR: QPDFWriter::unparseChild: indirect scalar: " + QUtil::int_to_string(child.getObjectID()) + " " + QUtil::int_to_string(child.getGeneration())); } @@ -1599,7 +1598,7 @@ QPDFWriter::writeXRefStream(int xref_id, int max_id, int max_offset, break; default: - throw QEXC::Internal("invalid type writing xref stream"); + throw std::logic_error("invalid type writing xref stream"); break; } } |