BreakException is used to terminate loops such as <forEach> and <while> tags.
BreakException
12131415161718
public class Break extends AbstractSourceInfoContainer implements Block { @Override public void apply(Record record, VariableSpace parentScope) throws BreakException { throw new BreakException("Break"); }
5152535455565758
} if ( var != null ) { context.setVariable( this.var, String.valueOf(broken)); } if ( broken ) { throw new BreakException(); } }
224225226227228229230231232233234235
__eval.setCurrentAST(this); __eval.notifyAboutSuspension(this); if (getTarget().isEmpty()) { throw new BreakException(); } else { throw new BreakException(Names.name(getTarget().getName())); } }