-
Notifications
You must be signed in to change notification settings - Fork 27
Better exception for AdminClient #148
Copy link
Copy link
Closed
Labels
api: pubsubliteIssues related to the googleapis/java-pubsublite API.Issues related to the googleapis/java-pubsublite API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Metadata
Metadata
Assignees
Labels
api: pubsubliteIssues related to the googleapis/java-pubsublite API.Issues related to the googleapis/java-pubsublite API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The exception that needs handling from the autocloseable
try(AdminClient adminClient = AdminClient.create(adminClientSettings)isjava.lang.Exception, which is very generic.Pub/Sub uses
java.io.IOExceptionforTopicAdminClientandSubscriptionAdminClient(samples).See original comment by @kurtisvg.