title: Exceptions: Compare Message Property to Know what it Means?
body: <p>Sometimes in an application, one might compare the Message text of an exception. For instance, if</p>
  
  <pre><code>ex.Message.Contains("String or binary data would be truncated")
  </code></pre>
  
  <p>then a MessageBox will be displayed for the user.</p>
  
  <p>This works when testing on an English-language Windows system. However, when the program is run on a system with a different language set, then this won't work. How to ensure that only English exception messages are used?</p>