You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2019/01/11 01:13:20 UTC

[GitHub] jonnxu commented on a change in pull request #65: Realization C asynSend

jonnxu commented on a change in pull request #65: Realization C asynSend 
URL: https://github.com/apache/rocketmq-client-cpp/pull/65#discussion_r246976290
 
 

 ##########
 File path: src/extern/CProducer.cpp
 ##########
 @@ -67,8 +68,12 @@ class CSendCallback : public AutoDeleteSendCallBack{
 
 	}
     virtual void onException(MQException& e) {
-    	m_cSendExceptionCallback( e.what() );
-
+    	CMQException exception;
+		exception.error = e.GetError();
+		exception.line  = e.GetLine();
+		strncpy(exception.msg, e.what(), MAX_MESSAGE_ID_LENGTH - 1);
+		strncpy(exception.file, e.GetFile(), MAX_MESSAGE_ID_LENGTH - 1);
 
 Review comment:
   wrong alignment, format them

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services