For example, if I’m opening a file, I know a FileNotFoundException might happen, or if I’m converting a String to double, a FormatException may happen. Obviously, if a method does both, both can be raised.
Is there a way to quickly see all possible exceptions raised by a method though? Keeping track of it myself seems error prone.
It’s not built into VS. There are 3rd party tools, though, like Redgate’s exception hunter.
Edit I’m not employed by RG, but I am a fan of their products. I’ve tried this particular one, but we ended up not buying it.