Report question

Question: How do I determine if an IOException is thrown because of a sharing violation?