aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFExc.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2009-10-20 02:24:44 +0200
committerJay Berkenbilt <ejb@ql.org>2009-10-20 02:24:44 +0200
commit398354b6f0c5e8311496481c2b80c1eb4bec4424 (patch)
tree538fe208893671fd7c10e24c7b79549b972ab18f /libqpdf/QPDFExc.cc
parent3f8c4c273649c857f5a607dcbb422729fce3a166 (diff)
downloadqpdf-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.cc30
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;
+}