title: Generate code for all exceptions thrown by a method
body: <p>Do you know if there is any option or extension to generate code required to catch all exceptions thrown by a method in Visual Studio?</p>
  
  <p>For example I'm calling <code>File.WriteAllBytes(...)</code></p>
  
  <p>That method can throw 9 Exceptions: System.ArgumentException, System.ArgumentNullException, etc, etc.</p>
  
  <p>I want the code for all 9 exceptions:</p>
  
  <pre><code>catch (ArgumentException) {
  
  }
  catch (ArgumentNullException) {
  
  }
  ...
  </code></pre>
  
  <p>I have seen this behavior in Eclipse for Java but I wonder if there is anything similar in Visual Studio.</p>
  
  <p>BTW I'm using Visual Studio 2012 Premium </p>