handle NumberFormatException by throwing a ValidatorException