Can Resharper or an existing plugin for resharper suggest exceptions to catch with a try catch block?
For example, File.ReadAllText throws the following exceptions, are there any existing plugins that will allow resharper/intellisense to display these as I type the catch block?
edit: Added a link so you can vote for the resharper suggestion https://resharper-support.jetbrains.com/hc/en-us/community/posts/115000073730-Suggest-exceptions-to-catch-when-typing-try-catch-block
Exceptional for ReSharper does something similar. It suggests exceptions to catch, not in IntelliSense, but when statically analyzing the code.
It is of course dependent upon the XML Documentation of all called methods to contain the possible exceptions thrown.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With