Skip to content

Better exception for AdminClient #148

@anguillanneuf

Description

@anguillanneuf

The exception that needs handling from the autocloseable try(AdminClient adminClient = AdminClient.create(adminClientSettings) is java.lang.Exception, which is very generic.

Pub/Sub uses java.io.IOException for TopicAdminClient and SubscriptionAdminClient (samples).

See original comment by @kurtisvg.

Metadata

Metadata

Labels

api: pubsubliteIssues related to the googleapis/java-pubsublite API.priority: p2Moderately-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.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions