boolean deterministic)
throws InvalidRequestException
{
super(name, argNames, argTypes, returnType, language, body, deterministic);
Compilable scriptEngine = scriptEngines.get(language);
if (scriptEngine == null)
throw new InvalidRequestException(String.format("Invalid language '%s' for function '%s'", language, name));
try
{
this.script = scriptEngine.compile(body);
}
catch (RuntimeException | ScriptException e)
{
logger.info("Failed to compile function '{}' for language {}: ", name, language, e);
throw new InvalidRequestException(