Date: Tuesday, December 5, 2006 @ 02:19:42
Author: marc
Path: /cvsroot/carob/carob/include
Modified: CarobException.hpp (1.52 -> 1.53)
Added richer UnexpectedException constructor
--------------------+
CarobException.hpp | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
Index: carob/include/CarobException.hpp
diff -u carob/include/CarobException.hpp:1.52
carob/include/CarobException.hpp:1.53
--- carob/include/CarobException.hpp:1.52 Tue Dec 5 01:49:19 2006
+++ carob/include/CarobException.hpp Tue Dec 5 02:19:42 2006
@@ -166,10 +166,16 @@
{
public:
/**
- * Constructs a UnexpectedException with the given message
- * @param s error message of the exception
+ * Constructs an UnexpectedException with the given message
+ *
+ * @see CarobException
*/
- UnexpectedException(std::wstring s) : CarobException(s) {};
+ UnexpectedException(const std::wstring& messagePrm,
+ const std::wstring& SQLStatePrm = DEFAULTSQLSTATE,
+ CarobException* causePrm = 0,
+ int vendorPrm = DEFAULTVENDORCODE) :
+ CarobException(messagePrm, SQLStatePrm, causePrm, vendorPrm)
+ { }
/**
* std::unexpected handler. Throws an Unexpected exception instead of
* terminating the program
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits