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

Unable to catch and properly handle timeout acquiring connection from pool exception #1246

Open
rjbaucells opened this issue Jun 14, 2022 · 0 comments

Comments

@rjbaucells
Copy link

I need to catch and properly handle ClientException when trying to acquire connection from the pool and failing due to timeout.

The code throwing the ClientException instance does not specify a code that can be used to differentiate the exception from other ClientException instances:

    throw new ClientException(
        "Unable to acquire connection from the pool within configured maximum time of " +
        settings.connectionAcquisitionTimeout() + "ms" );

Is it possible to add a new ClientError classification code specific to this case?

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