catch the IllegalArgumentException.