|
|||||||||||
|
Patch for better exception use -- BadQuery w/Errnum patch part 1
From: Jim Wallace <jwallace(at)kaneva.com>
Date: Wed Oct 24 2007 - 14:40:17 EDT
In this case the BadQuery was being misused in this case and Warren suggested a new exception. See http://lists.mysql.com/plusplus/7060 for reference Diffs are from the current svn Index: result.h
Index: exceptions.h
+/// \brief Exception thrown no result set was returned in a fetch,
+/// usually due to an error.
+
+class MYSQLPP_EXPORT UseQueryError : public Exception
+{
+public:
+ /// \brief Create exception object
+ explicit UseQueryError(const char* w = "") :
+ Exception(w)
+ {
+ }
+};
+
-- MySQL++ Mailing List For list archives: http://lists.mysql.com/plusplus To unsubscribe: http://lists.mysql.com/plusplus?unsub=lists@pantek.comReceived on Wed Oct 24 14:40:23 2007 This archive was generated by hypermail 2.1.8 : Fri Jul 04 2008 - 00:21:39 EDT |
||||||||||
|
|||||||||||