I was wondering how can I make visual studio show exceptions that any method can use, and not just .NET Framework methods (I use C #).
For example, it shows here that when I hover over Console.WriteLine, it says “Exceptions: System.IO.IOException”.

However, when I do this for any method that I wrote, it does not say which exception it throws, as shown in the following figure.

So, how do I make a visual studio show these exceptions? Do I need to add a specific method to a method?
Pavel source share