C# how to generate a proper error quickly for testing purposes
<p>I have some code in my error handler I need to test against a realistic error. How can I generate an error that has a full stack trace and is just as realistic as a runtime error. </p>

<p>I am using a general catch on an exception. So do not need a specific type of exception in this particular case. </p>

<p>Thanks</p>
