Sometimes in an application, one might compare the Message text of an exception. For instance, if
ex.Message.Contains("String or binary data would be truncated")
then a MessageBox will be displayed for the user.
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?