Skip to content

Conversation

@rupert-griffin
Copy link
Collaborator

No description provided.

@rupert-griffin rupert-griffin assigned memny and fbruton and unassigned memny and fbruton Nov 21, 2025
return pool.borrowObject();
} catch (Exception e) {
throw new PoolException(String.format("Unable to borrow channel from pool: %s", e.getMessage()));
throw new PoolException(String.format("Unable to borrow channel from pool: %s", e.getMessage()), e);
Copy link
Collaborator

Choose a reason for hiding this comment

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

i know not everyone agrees with me but i always follow this pattern.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@rupert-griffin What @memny is getting at is that it might be best to include the exception message in all the throws in ServiceException like it is done here.

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

Successfully merging this pull request may close these issues.

4 participants