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/Pl_StdioFile.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/Pl_StdioFile.cc')
-rw-r--r-- | libqpdf/Pl_StdioFile.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libqpdf/Pl_StdioFile.cc b/libqpdf/Pl_StdioFile.cc index 37ae5333..9504c61b 100644 --- a/libqpdf/Pl_StdioFile.cc +++ b/libqpdf/Pl_StdioFile.cc @@ -1,6 +1,6 @@ - #include <qpdf/Pl_StdioFile.hh> - +#include <qpdf/QUtil.hh> +#include <stdexcept> #include <errno.h> DLL_EXPORT @@ -25,8 +25,8 @@ Pl_StdioFile::write(unsigned char* buf, int len) so_far = fwrite(buf, 1, len, this->file); if (so_far == 0) { - throw QEXC::System(this->identifier + ": Pl_StdioFile::write", - errno); + QUtil::throw_system_error( + this->identifier + ": Pl_StdioFile::write"); } else { @@ -46,7 +46,8 @@ Pl_StdioFile::finish() } else { - throw QEXC::Internal(this->identifier + - ": Pl_StdioFile::finish: stream already closed"); + throw std::logic_error( + this->identifier + + ": Pl_StdioFile::finish: stream already closed"); } } |