Skip to content

fix: Change AdminClient close exception to be StatusException.#169

Closed
dpcollins-google wants to merge 1 commit intomasterfrom
fix-exception
Closed

fix: Change AdminClient close exception to be StatusException.#169
dpcollins-google wants to merge 1 commit intomasterfrom
fix-exception

Conversation

@dpcollins-google
Copy link
Collaborator

Fixes #148

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 20, 2020
Copy link
Contributor

@anguillanneuf anguillanneuf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you still need to fix clirr test.

@product-auto-label product-auto-label bot added the api: pubsublite Issues related to the googleapis/java-pubsublite API. label Aug 21, 2020
*
* @throws StatusException on a failure to properly terminate.
*/
void close() throws StatusException;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change that requires a major version update.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no major versions in a pre-v1 library. This change will not be submitted as it is superceded by #295. This is also only a breaking change for someone who overrides (not uses) AdminClient, which is not an intended workflow. The previous method signature was void close() throws Exception which this is a subset of.

@anguillanneuf anguillanneuf deleted the fix-exception branch August 4, 2021 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsublite Issues related to the googleapis/java-pubsublite API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Better exception for AdminClient

3 participants