Sorry, but this is bad advice. Catching it is like treating the symptoms of a disease when you can treat the disease itself - and will almost always result in a bug in the code. Figure out why it is...