Generalize exception handling in InvalidInputNotifier.