title: How can I determine which exceptions can be thrown by a given method?
body: <p>My question is really the same as this one <a href="https://stackoverflow.com/questions/264747/finding-out-what-exceptions-a-method-might-throw-in-c">"Finding out what exceptions a method might throw in C#"</a>. However, I would really like to know if anyone knows of a way to determine the stack of all the exceptions that may be thrown by a given method. I am hoping for a tool or utility that I can analyze code at compile time or through reflection like FxCop, StyleCop, or NCover. I do not need this information at run time I just want to make sure we are trapping exceptions and logging them correctly in out code. </p>
  
  <p>We are currently trapping the exceptions that we know about and logging all the wild cards. This does work well; however, i was just hoping someone has used or knows of a tool that can discover this information.</p>