title: Add object data when throwing an exception
body: <p>I am coding a MVC 5 internet application, and I have a question in regards to throwing exceptions.</p>
  
  <p>How is the best way to include object data when throwing an exception. I am wanting the exception to display specific object data when an email is sent to me when an exception occurs.</p>
  
  <p>Some options I found:</p>
  
  <ul>
  <li>I see that there is a <code>public virtual IDictionary Data</code> property. I could manually add data to the <code>Data</code> property.</li>
  <li>I could also export the object data to an xml file and include this in the exception.</li>
  <li>I could also maybe use reflection to get all the object fields.</li>
  </ul>
  
  <p>Is there a recommended way to do this?</p>