You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@etch.apache.org by fi...@apache.org on 2012/08/02 17:24:58 UTC
svn commit: r1368533 - in /incubator/etch/trunk/binding-cpp/runtime:
include/common/EtchException.h include/common/EtchRuntimeException.h
src/main/common/EtchException.cpp src/main/common/EtchRuntimeException.cpp
Author: fitzner
Date: Thu Aug 2 15:24:57 2012
New Revision: 1368533
URL: http://svn.apache.org/viewvc?rev=1368533&view=rev
Log:
ETCH-147 EtchException create by value
- EtchString constructor now by value this makes EtchException(EtchString("ERROR!")); possible
Change-Id: I535519b31fca6bc754e9c6c05e6d28a4473ec830
Modified:
incubator/etch/trunk/binding-cpp/runtime/include/common/EtchException.h
incubator/etch/trunk/binding-cpp/runtime/include/common/EtchRuntimeException.h
incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchException.cpp
incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchRuntimeException.cpp
Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchException.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchException.h?rev=1368533&r1=1368532&r2=1368533&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchException.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchException.h Thu Aug 2 15:24:57 2012
@@ -41,7 +41,7 @@ public:
* EtchException
* @param msg Exception Message
*/
- EtchException(EtchString &msg, status_t errcode, EtchExceptionType type);
+ EtchException(EtchString msg, status_t errcode, EtchExceptionType type);
//destructor
virtual ~EtchException();
@@ -81,8 +81,7 @@ protected:
* @param type Exception Type such as EXCPTYPE_USERDEFINED etc.
* @param type_id Typeid of Exception
*/
- EtchException(EtchString &msg, status_t errcode, EtchExceptionType type, const EtchObjectType* type_id);
-
+ EtchException(EtchString msg, status_t errcode, EtchExceptionType type, const EtchObjectType* type_id);
};
#endif /* ETCHEXCEPTION_H */
Modified: incubator/etch/trunk/binding-cpp/runtime/include/common/EtchRuntimeException.h
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/include/common/EtchRuntimeException.h?rev=1368533&r1=1368532&r2=1368533&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/include/common/EtchRuntimeException.h (original)
+++ incubator/etch/trunk/binding-cpp/runtime/include/common/EtchRuntimeException.h Thu Aug 2 15:24:57 2012
@@ -31,7 +31,7 @@ public:
static const EtchObjectType* TYPE();
//Default Constructor
- EtchRuntimeException(EtchString &msg, status_t errcode);
+ EtchRuntimeException(EtchString msg, status_t errcode);
/**
* Destructor
Modified: incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchException.cpp
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchException.cpp?rev=1368533&r1=1368532&r2=1368533&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchException.cpp (original)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchException.cpp Thu Aug 2 15:24:57 2012
@@ -27,12 +27,12 @@ EtchException::EtchException()
}
-EtchException::EtchException(EtchString &msg, status_t errcode, EtchExceptionType type)
+EtchException::EtchException(EtchString msg, status_t errcode, EtchExceptionType type)
: EtchObject(EtchException::TYPE()), mErrorMessage(msg), mErrorcode(errcode), mExcptype(type) {
}
-EtchException::EtchException(EtchString &msg, status_t errcode, EtchExceptionType type, const EtchObjectType* type_id)
+EtchException::EtchException(EtchString msg, status_t errcode, EtchExceptionType type, const EtchObjectType* type_id)
: EtchObject(type_id), mErrorMessage(msg), mErrorcode(errcode), mExcptype(type) {
}
Modified: incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchRuntimeException.cpp
URL: http://svn.apache.org/viewvc/incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchRuntimeException.cpp?rev=1368533&r1=1368532&r2=1368533&view=diff
==============================================================================
--- incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchRuntimeException.cpp (original)
+++ incubator/etch/trunk/binding-cpp/runtime/src/main/common/EtchRuntimeException.cpp Thu Aug 2 15:24:57 2012
@@ -24,7 +24,7 @@ const EtchObjectType* EtchRuntimeExcepti
}
-EtchRuntimeException::EtchRuntimeException(EtchString &msg, status_t errcode)
+EtchRuntimeException::EtchRuntimeException(EtchString msg, status_t errcode)
: EtchException(msg, errcode, EtchException::EXCPTYPE_BUILTIN, EtchRuntimeException::TYPE()) {
}
@@ -42,4 +42,4 @@ capu::bool_t EtchRuntimeException::equal
return ((ptr->mErrorcode == this->mErrorcode)
&& (ptr->mExcptype == this->mExcptype)
&& (ptr->mErrorMessage.equals(&this->mErrorMessage)));
-}
\ No newline at end of file
+}