Date: Monday, November 28, 2005 @ 13:34:26
Author: marc
Path: /cvsroot/carob/carob/include
Modified: CarobException.hpp (1.11 -> 1.12)
- backTrace field is now protected (there is a const& accessor)
- moved getSQLState() accessor up to the top, now available to all classes
--------------------+
CarobException.hpp | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: carob/include/CarobException.hpp
diff -u carob/include/CarobException.hpp:1.11
carob/include/CarobException.hpp:1.12
--- carob/include/CarobException.hpp:1.11 Mon Nov 28 11:10:23 2005
+++ carob/include/CarobException.hpp Mon Nov 28 13:34:26 2005
@@ -101,7 +101,8 @@
/** Returns a reference to the next exception in the chain, NULL if tail */
const CarobException* getNext() const { return causePtr; }
- const BackTrace backTrace;
+ /** get the SQLState if any */
+ const wstring & getSQLState() const { return SQLState; }
protected:
/** Error message */
@@ -114,6 +115,8 @@
wstring SQLState;
/** Vendor-specific error code */
int32_t errorCode;
+ /** Local stack trace when available */
+ const BackTrace backTrace;
private:
CarobException & operator =( CarobException & forbidden);
};
@@ -250,9 +253,6 @@
*/
BackendException(const DriverSocket& sock) throw (SocketIOException,
UnexpectedException) : CarobException(sock) {};
-
- const wstring & getSQLState() const { return SQLState; }
-
};
/**
_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits