Try to use more specific exceptions in places.