Date: Wednesday, December 14, 2005 @ 17:46:07
Author: gilles
Path: /cvsroot/carob/carob/include
Modified: CarobException.hpp (1.25 -> 1.26)
Introduced NullValueException for functions that return values from a table, to
indicate that the given value is null (typically for
DriverResultSet::getString() and friends)
--------------------+
CarobException.hpp | 22 ++++++++++++++++++----
1 files changed, 18 insertions(+), 4 deletions(-)
Index: carob/include/CarobException.hpp
diff -u carob/include/CarobException.hpp:1.25
carob/include/CarobException.hpp:1.26
--- carob/include/CarobException.hpp:1.25 Tue Dec 13 18:18:51 2005
+++ carob/include/CarobException.hpp Wed Dec 14 17:46:07 2005
@@ -214,16 +214,17 @@
};
/**
- * Exception on Protocol.
+ * Exception thrown when client tries to retrieve a value that is NULL,
+ * typically via GetString() GetInt(), etc.
*/
-class ProtocolException : public CarobException
+class NullValueException : public DriverException
{
public:
/**
- * Constructs a ProtocolException with the given message
+ * Constructs a NullValueException with the given message
* @param s error message of the exception
*/
- ProtocolException(std::wstring s) : CarobException(s) {};
+ NullValueException(std::wstring s) : DriverException(s) {};
};
/**
@@ -240,6 +241,19 @@
};
/**
+ * Exception on Protocol.
+ */
+class ProtocolException : public CarobException
+{
+public:
+ /**
+ * Constructs a ProtocolException with the given message
+ * @param s error message of the exception
+ */
+ ProtocolException(std::wstring s) : CarobException(s) {};
+};
+
+/**
* Exception thrown by a backend and serialized by the controller
* over the socket
*/
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits