title: How to serialize an Exception object in C#?
body: <p>I am trying to serialize an Exception object in C#. However, it appears that it is impossible since the Exception class is not marked as <a href="https://msdn.microsoft.com/en-us/library/system.serializableattribute" rel="noreferrer"><code>[Serializable]</code></a>. Is there a way to work around that?</p>
  
  <p>If something goes wrong during the execution of the application, I want to be informed with the exception that occurred. </p>
  
  <p>My first reflex is to serialize it.</p>