pulsar-client-cpp
result.h
1 
20 #pragma once
21 
22 #include <pulsar/defines.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 typedef enum
29 {
30  pulsar_result_Ok,
31 
32  pulsar_result_UnknownError,
33 
34  pulsar_result_InvalidConfiguration,
35 
36  pulsar_result_Timeout,
37  pulsar_result_LookupError,
38  pulsar_result_ConnectError,
39  pulsar_result_ReadError,
40 
41  pulsar_result_AuthenticationError,
42  pulsar_result_AuthorizationError,
43  pulsar_result_ErrorGettingAuthenticationData,
44 
45  pulsar_result_BrokerMetadataError,
46  pulsar_result_BrokerPersistenceError,
47  pulsar_result_ChecksumError,
48 
49  pulsar_result_ConsumerBusy,
50  pulsar_result_NotConnected,
51  pulsar_result_AlreadyClosed,
52 
53  pulsar_result_InvalidMessage,
54 
55  pulsar_result_ConsumerNotInitialized,
56  pulsar_result_ProducerNotInitialized,
57  pulsar_result_ProducerBusy,
58  pulsar_result_TooManyLookupRequestException,
59 
60  pulsar_result_InvalidTopicName,
61  pulsar_result_InvalidUrl,
62  pulsar_result_ServiceUnitNotReady,
64  pulsar_result_OperationNotSupported,
67  pulsar_result_ProducerBlockedQuotaExceededError,
68  pulsar_result_ProducerBlockedQuotaExceededException,
69  pulsar_result_ProducerQueueIsFull,
70  pulsar_result_MessageTooBig,
71  pulsar_result_TopicNotFound,
72  pulsar_result_SubscriptionNotFound,
73  pulsar_result_ConsumerNotFound,
74  pulsar_result_UnsupportedVersionError,
75  pulsar_result_TopicTerminated,
77  pulsar_result_CryptoError,
78 
79  pulsar_result_IncompatibleSchema,
80  pulsar_result_ConsumerAssignError,
81  pulsar_result_CumulativeAcknowledgementNotAllowedError,
84  pulsar_result_TransactionCoordinatorNotFoundError,
87  pulsar_result_InvalidTxnStatusError,
88  pulsar_result_NotAllowedError,
89  pulsar_result_TransactionConflict,
90  pulsar_result_TransactionNotFound,
91  pulsar_result_ProducerFenced,
92 
93  pulsar_result_MemoryBufferIsFull,
94  pulsar_result_Interrupted,
95 } pulsar_result;
96 
97 // Return string representation of result code
98 PULSAR_PUBLIC const char *pulsar_result_str(pulsar_result result);
99 
100 #ifdef __cplusplus
101 }
102 #endif