From f3d7c26de1f575a14017a161ad1fdd2b93385e03 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 26 Sep 2009 18:36:04 +0000 Subject: removed qexc; non-compatible ABI change git-svn-id: svn+q:///qpdf/trunk@709 71b93d88-0707-0410-a8cf-f5a4172ac649 --- libqpdf/QPDFWriter.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'libqpdf/QPDFWriter.cc') 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 #include @@ -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; } } -- cgit v1.2.3-54-g00ecf