You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2023/01/13 13:06:32 UTC
[GitHub] [pulsar-client-cpp] shibd commented on a diff in pull request #157: [feat] Support auto download schema when create producer.
shibd commented on code in PR #157:
URL: https://github.com/apache/pulsar-client-cpp/pull/157#discussion_r1069423672
##########
include/pulsar/Result.h:
##########
@@ -94,6 +94,7 @@ enum Result
ResultInterrupted, /// Interrupted while waiting to dequeue
ResultDisconnected, /// Client connection has been disconnected
+ ResultNotFound /// The generic was not found
Review Comment:
This means the requested resource/data was not found. Currently used as HTTP request 404, It can also be used as other scenarios. So define it as generic
```c++
case CURLE_HTTP_RETURNED_ERROR:
LOG_ERROR("Response failed for url " << completeUrl << ". Error Code " << res);
if (response_code == 404) {
retResult = ResultNotFound;
} else {
retResult = ResultConnectError;
}
break;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org