Inspection tool to find all possible exceptions

#1

I understand the reason behind unchecked exceptions.

In practice you often have to use 3rd party libraries that use exceptions for default states that you want to handle.
Like sowing a message to the user when the device is offline or the server not reachable on a network call.
And not always the documentation is as good as you wish it to be. :wink:

This seems to lead to the other imho bad practice to do a generic “catch all” and just show “unknown error”.

What would be great is an inspection/reasoning tool that would list all possible exceptions on a call. Does that exist?

#2

Hi. Check out the existing feature requests:

https://youtrack.jetbrains.com/issue/KT-18276
https://youtrack.jetbrains.com/issue/KT-24516

If your use case is different, feel free to submit a separate request at http://kotl.in/issue. Thanks!