title: What exceptions can occur when saving an XDocument?
body: <p>In my C# application I'm using the following statement:</p>
  
  <pre><code>public void Write(XDocument outputXml, string outputFilename) {
    outputXml.Save(outputFilename);
  }
  </code></pre>
  
  <p>How can I find out which exceptions the <code>Save</code> method might throw? Preferably right in Visual Studio 2012 or alternatively in the MSDN documentation.</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/bb345830%28v=vs.100%29.aspx" rel="nofollow">XDocument.Save</a> does not give any references. It does for other methods, e.g. <code>File.IO.Open</code>.</p>