How can I get exception code in C#?
<p>Is there anything like exception code? that i can know that on different languages operation system i can recognize the same exception?</p>

<p>I need to recognize 'Acces to the COMn Port is denied' and then do some action, is that possible? has this exception any specified type?</p>
