Using System Exception
<p>I have a project I am creating and I am adding a reference to a class that generates an email where the exception happened and lots of good stuff. </p>

<p>My question is. If I was to put this in a method and call it in the <code>Catch{}</code> how would i do this for the whole project so i could just name the method in the catch and it would know on every page of the project.</p>

<pre><code>var exceptionUtility = new genericExceptions();
exceptionUtility.genericSystemException(
ex,
Server.MachineName,
Page.TemplateSourceDirectory.Remove(0, 1) + Page.AppRelativeVirtualPath.Remove(0, 1),
ConfigurationManager.AppSettings["emailSupport"],
ConfigurationManager.AppSettings["emailFrom"],
string.Empty);
</code></pre>
