Date: Monday, December 4, 2006 @ 22:28:18
Author: marc
Path: /cvsroot/carob/carob/src
Modified: Connection.cpp (1.96 -> 1.97)
In Connection(ConnectionParameters), catching exceptions by reference.
Chaining NoMoreControllerException to ConnectionException
----------------+
Connection.cpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: carob/src/Connection.cpp
diff -u carob/src/Connection.cpp:1.96 carob/src/Connection.cpp:1.97
--- carob/src/Connection.cpp:1.96 Wed Nov 29 20:36:49 2006
+++ carob/src/Connection.cpp Mon Dec 4 22:28:18 2006
@@ -100,26 +100,26 @@
}
// SocketIO and connection exceptions indicate dead controller => try to
// connect to the next one in the controller list
- catch (SocketIOException sioe)
+ catch (SocketIOException& sioe)
{
//Do some clean up
delete driverSocketPtr; driverSocketPtr = NULL;
//suspect failing controller and try next one
controller_pool.forceControllerDown(connected_controller);
}
- catch (ConnectionException ce)
+ catch (ConnectionException& ce)
{
//Do some clean up
delete driverSocketPtr; driverSocketPtr = NULL;
//suspect failing controller and try next one
controller_pool.forceControllerDown(connected_controller);
}
- catch (NoMoreControllerException nmce)
+ catch (NoMoreControllerException& nmce)
{
// Clean all: we are in constructor, destructor won't be called !
delete driverSocketPtr; driverSocketPtr = NULL;
parameters.releaseControllerPool();
- throw (ConnectionException(nmce.description()));
+ throw (ConnectionException(nmce.description(), L"08001", &nmce));
}
// Other exceptions must be reported to the user
catch (...)
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits