Good point.

I will show in the message bar, the feature id's that raise exceptions (NULL or can't be converted to int()).
If there are too many erroneous features, I will put in message the first ten features ids and print in the console the entire list.