exceptions.add(e);
}
if (exceptions.size() == 1)
{
throw new ELException("Error evaluating " + expression, exceptions.get(0));
}
else if (exceptions.size() > 1)
{
log.error("Exceptions occurred when parsing " + expression);
for (javax.el.ELException e : exceptions)
{
log.error("Possible cause", e);
}
}
if (me == null && ve == null)
{
log.error("Error parsing " + expression);
throw new ELException("Error parsing " + expression + "; not a valid EL expression");
}
throw new ELException("Error evaluating " + expression + "; possible causes are logged at debug level");
}
};
}