pulsar-client-cpp
Result.h
1 
19 #ifndef ERROR_HPP_
20 #define ERROR_HPP_
21 
22 #include <pulsar/defines.h>
23 
24 #include <iosfwd>
25 
26 namespace pulsar {
27 
31 enum Result
32 {
33  ResultRetryable = -1,
34  ResultOk = 0,
35 
37 
39 
44 
48 
52 
56 
58 
63 
69  ResultProducerBlockedQuotaExceededError,
79 
91 
93 
95 
97 };
98 
99 // Return string representation of result code
100 PULSAR_PUBLIC const char* strResult(Result result);
101 
102 PULSAR_PUBLIC std::ostream& operator<<(std::ostream& s, pulsar::Result result);
103 } // namespace pulsar
104 
105 #endif /* ERROR_HPP_ */
pulsar::ResultSubscriptionNotFound
@ ResultSubscriptionNotFound
Topic not found.
Definition: Result.h:74
pulsar::ResultConnectError
@ ResultConnectError
Broker lookup failed.
Definition: Result.h:42
pulsar::ResultMemoryBufferIsFull
@ ResultMemoryBufferIsFull
Producer was fenced by broker.
Definition: Result.h:92
pulsar::ResultInterrupted
@ ResultInterrupted
Client-wide memory limit has been reached.
Definition: Result.h:94
pulsar::ResultTransactionNotFound
@ ResultTransactionNotFound
Transaction ack conflict.
Definition: Result.h:89
pulsar::ResultProducerBusy
@ ResultProducerBusy
Producer is not initialized.
Definition: Result.h:61
pulsar::ResultMessageTooBig
@ ResultMessageTooBig
Producer queue is full.
Definition: Result.h:72
pulsar::ResultServiceUnitNotReady
@ ResultServiceUnitNotReady
Client Initialized with Invalid Broker Url (VIP Url passed to Client Constructor)
Definition: Result.h:66
pulsar::ResultProducerQueueIsFull
@ ResultProducerQueueIsFull
Producer is getting exception.
Definition: Result.h:71
pulsar::ResultProducerFenced
@ ResultProducerFenced
Transaction not found.
Definition: Result.h:90
pulsar::ResultConsumerAssignError
@ ResultConsumerAssignError
Specified schema is incompatible with the topic's schema.
Definition: Result.h:81
pulsar::Result
Result
Definition: Result.h:31
pulsar::ResultCryptoError
@ ResultCryptoError
Topic was already terminated.
Definition: Result.h:78
pulsar::ResultInvalidTxnStatusError
@ ResultInvalidTxnStatusError
Transaction coordinator not found.
Definition: Result.h:86
pulsar::ResultBrokerPersistenceError
@ ResultBrokerPersistenceError
Broker failed in updating metadata.
Definition: Result.h:50
pulsar::ResultCumulativeAcknowledgementNotAllowedError
@ ResultCumulativeAcknowledgementNotAllowedError
Definition: Result.h:83
pulsar::ResultOk
@ ResultOk
An internal error code used for retry.
Definition: Result.h:34
pulsar::ResultConsumerNotFound
@ ResultConsumerNotFound
Subscription not found.
Definition: Result.h:75
pulsar::ResultIncompatibleSchema
@ ResultIncompatibleSchema
Error when crypto operation fails.
Definition: Result.h:80
pulsar::ResultInvalidConfiguration
@ ResultInvalidConfiguration
Unknown error happened on broker.
Definition: Result.h:38
pulsar::ResultChecksumError
@ ResultChecksumError
Broker failed to persist entry.
Definition: Result.h:51
pulsar::ResultTransactionCoordinatorNotFoundError
@ ResultTransactionCoordinatorNotFoundError
Definition: Result.h:85
pulsar::ResultTopicTerminated
@ ResultTopicTerminated
Error when an older client/version doesn't support a required feature.
Definition: Result.h:77
pulsar::ResultConsumerNotInitialized
@ ResultConsumerNotInitialized
Error in publishing an already used message.
Definition: Result.h:59
pulsar::ResultTooManyLookupRequestException
@ ResultTooManyLookupRequestException
Producer with same name is already connected.
Definition: Result.h:62
pulsar::ResultConsumerBusy
@ ResultConsumerBusy
Corrupt message checksum failure.
Definition: Result.h:53
pulsar::ResultTopicNotFound
@ ResultTopicNotFound
Trying to send a messages exceeding the max size.
Definition: Result.h:73
pulsar::ResultProducerBlockedQuotaExceededException
@ ResultProducerBlockedQuotaExceededException
Producer is blocked.
Definition: Result.h:70
pulsar::ResultTimeout
@ ResultTimeout
Invalid configuration.
Definition: Result.h:40
pulsar::ResultNotAllowedError
@ ResultNotAllowedError
Invalid txn status error.
Definition: Result.h:87
pulsar::ResultDisconnected
@ ResultDisconnected
Interrupted while waiting to dequeue.
Definition: Result.h:96
pulsar::ResultProducerNotInitialized
@ ResultProducerNotInitialized
Consumer is not initialized.
Definition: Result.h:60
pulsar::ResultAuthenticationError
@ ResultAuthenticationError
Failed to read from socket.
Definition: Result.h:45
pulsar::ResultNotConnected
@ ResultNotConnected
Exclusive consumer is already connected.
Definition: Result.h:54
pulsar::ResultUnsupportedVersionError
@ ResultUnsupportedVersionError
Consumer not found.
Definition: Result.h:76
pulsar::ResultOperationNotSupported
@ ResultOperationNotSupported
Definition: Result.h:68
pulsar::ResultLookupError
@ ResultLookupError
Operation timed out.
Definition: Result.h:41
pulsar::ResultAuthorizationError
@ ResultAuthorizationError
Authentication failed on broker.
Definition: Result.h:46
pulsar
Definition: Authentication.h:31
pulsar::ResultReadError
@ ResultReadError
Failed to connect to broker.
Definition: Result.h:43
pulsar::ResultAlreadyClosed
@ ResultAlreadyClosed
Producer/Consumer is not currently connected to broker.
Definition: Result.h:55
pulsar::ResultBrokerMetadataError
@ ResultBrokerMetadataError
Client cannot find authorization data.
Definition: Result.h:49
pulsar::ResultUnknownError
@ ResultUnknownError
Operation successful.
Definition: Result.h:36
pulsar::ResultTransactionConflict
@ ResultTransactionConflict
Not allowed.
Definition: Result.h:88
pulsar::ResultErrorGettingAuthenticationData
@ ResultErrorGettingAuthenticationData
Client is not authorized to create producer/consumer.
Definition: Result.h:47
pulsar::ResultInvalidMessage
@ ResultInvalidMessage
Producer/Consumer is already closed and not accepting any operation.
Definition: Result.h:57
pulsar::ResultInvalidUrl
@ ResultInvalidUrl
Invalid topic name.
Definition: Result.h:65
pulsar::ResultInvalidTopicName
@ ResultInvalidTopicName
Too Many concurrent LookupRequest.
Definition: Result.h:64