Removing duplicates Exception classes