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/QEXC.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/QEXC.cc')
-rw-r--r-- | libqpdf/QEXC.cc | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/libqpdf/QEXC.cc b/libqpdf/QEXC.cc deleted file mode 100644 index d8154f33..00000000 --- a/libqpdf/QEXC.cc +++ /dev/null @@ -1,77 +0,0 @@ - -#include <qpdf/QEXC.hh> -#include <string.h> -#include <errno.h> - -DLL_EXPORT -QEXC::Base::Base() -{ - // nothing needed -} - -DLL_EXPORT -QEXC::Base::Base(std::string const& message) : - message(message) -{ - // nothing needed -} - -DLL_EXPORT -std::string const& -QEXC::Base::unparse() const -{ - return this->message; -} - -DLL_EXPORT -void -QEXC::Base::setMessage(std::string const& message) -{ - this->message = message; -} - -DLL_EXPORT -const char* -QEXC::Base::what() const throw() -{ - // Since unparse() returns a const string reference, its - // implementors must arrange to have it return a reference to a - // string that is not going to disappear. It is therefore safe - // for us to return it's c_str() pointer. - return this->unparse().c_str(); -} - -DLL_EXPORT -QEXC::General::General() -{ - // nothing needed -} - -DLL_EXPORT -QEXC::General::General(std::string const& message) : - Base(message) -{ - // nothing needed -} - -DLL_EXPORT -QEXC::System::System(std::string const& prefix, int sys_errno) -{ - // Note: using sys_errno in case errno is a macro. - this->sys_errno = sys_errno; - this->setMessage(prefix + ": " + strerror(sys_errno)); -} - -DLL_EXPORT -int -QEXC::System::getErrno() const -{ - return this->sys_errno; -} - -DLL_EXPORT -QEXC::Internal::Internal(std::string const& message) : - Base("INTERNAL ERROR: " + message) -{ - // nothing needed -} |