Display the error message based on the custom Error Code throwing Exception in c#
<p>I want to catch the exception and based on the exception occurred define the custom error code and display the Error message</p>

<p>I would like to build a xml file to distinguish exceptions in my program and later do exception translations.</p>

<p>For example:</p>

<pre><code>&lt;EXCEPTIONS&gt;
     &lt;EXCEPTION tip="MyException"&gt;
          &lt;ERROR ID="1"&gt;
             &lt;DESCRIPTION&gt;The server is not operational&lt;/DESCRIPTION&gt;
         &lt;/ERROR&gt;
     &lt;/EXCEPTION &gt;
&lt;/EXCEPTIONS&gt;
</code></pre>
