//If we get here, no date formats worked
//Propogate cause if only one format exists
PreferencesException ex = new PreferencesException("Error parsing date '" + s + "'.");
if (dateFormats.size() == 1)
ex.initCause(lastParseError);
throw ex;
}
@Override