summaryrefslogtreecommitdiff
path: root/libdbpp/selectcommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-11-09 18:26:12 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-11-09 18:26:12 +0000
commit535fc84bc9d7d5bb177c6ca4d42a17fe594059cd (patch)
tree805711274c6b32db4eb4160dcb2dfe0373e73f8a /libdbpp/selectcommand.h
parentAdd specific exception for invalid conversions during extract and tests over ... (diff)
downloadlibdbpp-535fc84bc9d7d5bb177c6ca4d42a17fe594059cd.tar.bz2
libdbpp-535fc84bc9d7d5bb177c6ca4d42a17fe594059cd.tar.xz
libdbpp-535fc84bc9d7d5bb177c6ca4d42a17fe594059cd.zip
Add exception messages with adhoc exception
Diffstat (limited to 'libdbpp/selectcommand.h')
-rw-r--r--libdbpp/selectcommand.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h
index 8c9af13..e82a532 100644
--- a/libdbpp/selectcommand.h
+++ b/libdbpp/selectcommand.h
@@ -11,18 +11,21 @@
#include <boost/function/function_fwd.hpp>
#include <boost/shared_ptr.hpp>
#include <visibility.h>
+#include <exception.h>
namespace DB {
class Column;
- class ColumnIndexOutOfRange : public Error {
+ class DLL_PUBLIC ColumnIndexOutOfRange : public AdHoc::Exception<Error> {
public:
ColumnIndexOutOfRange(unsigned int n);
+ std::string message() const throw() override;
const unsigned int colNo;
};
- class ColumnDoesNotExist : public Error {
+ class DLL_PUBLIC ColumnDoesNotExist : public AdHoc::Exception<Error> {
public:
ColumnDoesNotExist(const Glib::ustring & n);
+ std::string message() const throw() override;
const Glib::ustring colName;
};