summaryrefslogtreecommitdiffstats
path: root/include/qpdf/QPDFExc.hh
diff options
context:
space:
mode:
Diffstat (limited to 'include/qpdf/QPDFExc.hh')
-rw-r--r--include/qpdf/QPDFExc.hh9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/qpdf/QPDFExc.hh b/include/qpdf/QPDFExc.hh
index 968cd049..8fa7fedc 100644
--- a/include/qpdf/QPDFExc.hh
+++ b/include/qpdf/QPDFExc.hh
@@ -12,14 +12,16 @@
#include <qpdf/Constants.h>
#include <stdexcept>
-class DLL_EXPORT QPDFExc: public std::runtime_error
+class QPDFExc: public std::runtime_error
{
public:
+ DLL_EXPORT
QPDFExc(qpdf_error_code_e error_code,
std::string const& filename,
std::string const& object,
off_t offset,
std::string const& message);
+ DLL_EXPORT
virtual ~QPDFExc() throw ();
// To get a complete error string, call what(), provided by
@@ -32,10 +34,15 @@ class DLL_EXPORT QPDFExc: public std::runtime_error
// the underlying issue, but it is more programmer-friendly than
// trying to parse a string that is subject to change.
+ DLL_EXPORT
qpdf_error_code_e getErrorCode() const;
+ DLL_EXPORT
std::string const& getFilename() const;
+ DLL_EXPORT
std::string const& getObject() const;
+ DLL_EXPORT
off_t getFilePosition() const;
+ DLL_EXPORT
std::string const& getMessageDetail() const;
private: