java-slack-sdk icon indicating copy to clipboard operation
java-slack-sdk copied to clipboard

MethodsCompletionException is unnecessarily complex

Open osigida opened this issue 10 months ago • 1 comments

The com.slack.api.methods.MethodsCompletionException does not align with the partner's API (getMessage) and is challenging to maintain. It requires handling specific exceptions and examining complex details to retrieve information. However, the implementation is unnecessarily complex and could be significantly simplified.

The Slack SDK version

1.45.3

Expected result:

It is easy to use Slack exceptions because they follow the default behavior and implement the default methods

Actual result:

Exception handling requires some specialized code

osigida avatar Mar 12 '25 16:03 osigida

Hi @osigida thanks for writing is 💯

This seems like a good feature request, this may involve a breaking change and in this case we would need to include it in our next major release

We can leave this issue open and see if other users would like to see this prioritized

WilliamBergamin avatar Mar 12 '25 19:03 WilliamBergamin