Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document for the pulsar.Result enum #185

Open
BewareMyPower opened this issue Dec 27, 2023 · 0 comments
Open

Document for the pulsar.Result enum #185

BewareMyPower opened this issue Dec 27, 2023 · 0 comments

Comments

@BewareMyPower
Copy link
Contributor

The pulsar.Result enum is just imported from the C extension. See

from _pulsar import Result, CompressionType, ConsumerType, InitialPosition, PartitionsRoutingMode, BatchingType, \

Running help(pulsar.Result) could only show the underlying C error codes like

 |
 |  AlreadyClosed = <Result.AlreadyClosed: 15>
 |
 |  AuthenticationError = <Result.AuthenticationError: 7>
 |
 |  AuthorizationError = <Result.AuthorizationError: 8>
 |
 |  BrokerMetadataError = <Result.BrokerMetadataError: 10>
 |
 |  BrokerPersistenceError = <Result.BrokerPersistenceError: 11>

The error code should be well documented. Otherwise users might not know how to handle these error codes.

For now, users can refer https://github.com/apache/pulsar-client-cpp/blob/main/include/pulsar/Result.h for the meaning of error codes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant