// We use copy on write lists to safely pass the reference to another actor for the iteration.
@ -289,7 +289,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();
@ -114,7 +114,7 @@ public class CalculatedFieldCtx {
initialized=true;
}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);
}
}else{
if(isValidExpression(expression)){
@ -128,7 +128,7 @@ public class CalculatedFieldCtx {
initialized=true;
}else{
initialized=false;
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.");