// We use copy on write lists to safely pass the reference to another actor for the iteration.
@ -456,7 +456,7 @@ public class CalculatedFieldManagerMessageProcessor extends AbstractContextAware
try{
newCfCtx.init();
}catch(Exceptione){
throwCalculatedFieldException.builder().ctx(newCfCtx).eventEntity(newCfCtx.getEntityId()).cause(e).errorMessage("Failed to initialize CF context").build();
@ -387,7 +387,7 @@ public class CalculatedFieldCtx implements Closeable {
tbelExpressions.put(expression,engine);
}catch(Exceptione){
initialized=false;
thrownewRuntimeException("Failed to init calculated field ctx. Invalid expression syntax.",e);
thrownewRuntimeException("Failed to initialize CF context. The script expression is invalid. Please check for syntax errors or unsupported functions.",e);
}
}
@ -404,7 +404,7 @@ public class CalculatedFieldCtx implements Closeable {
thrownewRuntimeException("Failed to init calculated field ctx. Invalid expression syntax.");
thrownewRuntimeException("Failed to initialize CF context. The expression has invalid syntax or unknown variables. Ensure all mathematical operators are correct.");