Catch exceptions from name identifier parsing.