Date: Friday, January 13, 2006 @ 00:07:51
  Author: marc
    Path: /cvsroot/carob/carob/include

Modified: CarobException.hpp (1.29 -> 1.30)

.description() returns wstring const reference instead of a copy.
Added mission const qualifier on getErrorCode() getter.


--------------------+
 CarobException.hpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: carob/include/CarobException.hpp
diff -u carob/include/CarobException.hpp:1.29 
carob/include/CarobException.hpp:1.30
--- carob/include/CarobException.hpp:1.29       Thu Jan 12 19:55:10 2006
+++ carob/include/CarobException.hpp    Fri Jan 13 00:07:51 2006
@@ -90,7 +90,7 @@
   virtual ~CarobException();
 
   /** Gets the exception error message */
-  virtual std::wstring        description() const { return message; }
+  virtual const std::wstring&  description() const { return message; }
 
   /** Returns the remote java stack trace */
   const StackTrace& getStackTrace() const { return stackTrace; }
@@ -104,7 +104,7 @@
   /** get the SQLState if any */
   const std::wstring & getSQLState() const { return SQLState; }
   /** Retrieves the vendor-specific exception code */
-  int getErrorCode() { return errorCode; }
+  int getErrorCode() const { return errorCode; }
 
 protected:
   /** Error message */

_______________________________________________
Carob-commits mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/carob-commits

Reply via email to