/** * Triggered when method, function or constructor invocation fails. * @param xjexl the JexlException wrapping the original error * @return throws JexlException if strict, null otherwise */ protected Object invocationFailed(JexlException xjexl) { if (strict || xjexl instanceof JexlException.Return) { throw xjexl; } if (!silent) { logger.warn(xjexl.getMessage(), xjexl.getCause()); } return null; }
/** * Triggered when variable can not be resolved. * @param xjexl the JexlException ("undefined variable " + variable) * @return throws JexlException if strict, null otherwise */ protected Object unknownVariable(JexlException xjexl) { if (strict) { throw xjexl; } if (!silent) { logger.warn(xjexl.getMessage()); } return null; }