} catch (IllegalArgumentException ex) {
final String fmt = localStrings.getLocalString("valueTypeMismatch",
"Cannot assign value {0} to an env-entry of type {1}",
candidateFinalValue, candidateFinalType);
final String valueOrType = (value != null ? "--value" : "--type");
throw new PropertyVetoException(fmt + " - " + ex.getLocalizedMessage(),
new PropertyChangeEvent(envEntry, valueOrType,
envEntry.getEnvEntryType(), envEntryType));
}
}