diff options
author | Jay Berkenbilt <ejb@ql.org> | 2009-10-20 02:24:44 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2009-10-20 02:24:44 +0200 |
commit | 398354b6f0c5e8311496481c2b80c1eb4bec4424 (patch) | |
tree | 538fe208893671fd7c10e24c7b79549b972ab18f /libqpdf/QPDFExc.cc | |
parent | 3f8c4c273649c857f5a607dcbb422729fce3a166 (diff) | |
download | qpdf-398354b6f0c5e8311496481c2b80c1eb4bec4424.tar.zst |
update C API for error retrieval
git-svn-id: svn+q:///qpdf/trunk@830 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDFExc.cc')
-rw-r--r-- | libqpdf/QPDFExc.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libqpdf/QPDFExc.cc b/libqpdf/QPDFExc.cc index 614990a9..1fc9d724 100644 --- a/libqpdf/QPDFExc.cc +++ b/libqpdf/QPDFExc.cc @@ -54,3 +54,33 @@ QPDFExc::createWhat(std::string const& filename, result += message; return result; } + +qpdf_error_code_e +QPDFExc::getErrorCode() const +{ + return this->error_code; +} + +std::string const& +QPDFExc::getFilename() const +{ + return this->filename; +} + +std::string const& +QPDFExc::getObject() const +{ + return this->object; +} + +off_t +QPDFExc::getFilePosition() const +{ + return this->offset; +} + +std::string const& +QPDFExc::getMessageDetail() const +{ + return this->message; +} |