summaryrefslogtreecommitdiff
path: root/libdbpp/selectcommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 02:25:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-29 06:00:07 +0000
commit47b728c790e55462cda7714475ad17c7d294d886 (patch)
tree7cd83372eab9aafa0da15919635503cb3d89f054 /libdbpp/selectcommand.h
parentAdd scope transaction helper (diff)
downloadlibdbpp-47b728c790e55462cda7714475ad17c7d294d886.tar.bz2
libdbpp-47b728c790e55462cda7714475ad17c7d294d886.tar.xz
libdbpp-47b728c790e55462cda7714475ad17c7d294d886.zip
Add missing doxygen comments
Diffstat (limited to 'libdbpp/selectcommand.h')
-rw-r--r--libdbpp/selectcommand.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/libdbpp/selectcommand.h b/libdbpp/selectcommand.h
index 1165de1..c29084a 100644
--- a/libdbpp/selectcommand.h
+++ b/libdbpp/selectcommand.h
@@ -16,20 +16,35 @@
namespace DB {
class Column;
+
+ /// Exception thrown when the requested column is outside the range of the result set.
class DLL_PUBLIC ColumnIndexOutOfRange : public AdHoc::Exception<Error> {
public:
+ /// New ColumnIndexOutOfRange exception
+ /// @param n Index requested
ColumnIndexOutOfRange(unsigned int n);
- std::string message() const throw() override;
+ /// Index requested
const unsigned int colNo;
+
+ private:
+ std::string message() const throw() override;
};
+
+ /// Exception thrown when the requested column does not exist in the result set.
class DLL_PUBLIC ColumnDoesNotExist : public AdHoc::Exception<Error> {
public:
+ /// New ColumnDoesNotExist exception
+ /// @param n Name requested
ColumnDoesNotExist(const Glib::ustring & n);
- std::string message() const throw() override;
+ /// Name requested
const Glib::ustring colName;
+
+ private:
+ std::string message() const throw() override;
};
+
/// Represents a command expected to return data to the client.
class DLL_PUBLIC SelectCommand : public virtual Command {
public: