diff options
Diffstat (limited to 'libqpdf/Pl_QPDFTokenizer.cc')
-rw-r--r-- | libqpdf/Pl_QPDFTokenizer.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libqpdf/Pl_QPDFTokenizer.cc b/libqpdf/Pl_QPDFTokenizer.cc index 96328408..28ea4faa 100644 --- a/libqpdf/Pl_QPDFTokenizer.cc +++ b/libqpdf/Pl_QPDFTokenizer.cc @@ -1,7 +1,7 @@ - #include <qpdf/Pl_QPDFTokenizer.hh> #include <qpdf/QPDF_String.hh> #include <qpdf/QPDF_Name.hh> +#include <stdexcept> #include <string.h> Pl_QPDFTokenizer::Pl_QPDFTokenizer(char const* identifier, Pipeline* next) : @@ -134,8 +134,9 @@ Pl_QPDFTokenizer::checkUnread() processChar(this->char_to_unread); if (this->unread_char) { - throw QEXC::Internal("unread_char still true after processing " - "unread character"); + throw std::logic_error( + "INTERNAL ERROR: unread_char still true after processing " + "unread character"); } } } |