diff options
Diffstat (limited to 'libqpdf/QPDF_Array.cc')
-rw-r--r-- | libqpdf/QPDF_Array.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libqpdf/QPDF_Array.cc b/libqpdf/QPDF_Array.cc index d1edbfdd..b7227f0d 100644 --- a/libqpdf/QPDF_Array.cc +++ b/libqpdf/QPDF_Array.cc @@ -1,7 +1,5 @@ - #include <qpdf/QPDF_Array.hh> - -#include <qpdf/QEXC.hh> +#include <stdexcept> QPDF_Array::QPDF_Array(std::vector<QPDFObjectHandle> const& items) : items(items) @@ -37,7 +35,8 @@ QPDF_Array::getItem(int n) const { if ((n < 0) || (n >= (int)this->items.size())) { - throw QEXC::Internal("bounds array accessing QPDF_Array element"); + throw std::logic_error( + "INTERNAL ERROR: bounds array accessing QPDF_Array element"); } return this->items[n]; } |