title: How can i get the error number instead of error message in an Exception in C#?
body: <p>Is there a way that i can get the corresponding error code of an <code>Exceptions</code> ? 
  I need the thrown exceptions error code instead of its message , so that i based on the error code i show the right message to the user.</p>