The activity is then put in state failed and the fault is propagated to the fault handler of the next enclosing scope.
然后将该活动置于已失败状态,并且将错误传播到下一个封闭范围的错误处理程序。
A Groovy Closure is an anonymous function that can access its enclosing scope, can be called repeatedly at will, and be passed around as it were data.
一个Groovy闭包是一个匿名函数,它可访问包含它的范围,可随意被重复调用,并可将其当作数据到处传递。
Fault handling in this context can be as easy as doing nothing — simply the existence of the custom fault handler prevents the fault from being propagated to the enclosing scope or process.
此上下文中的错误处理非常简单——只要有自定义错误处理程序存在,就可以防止将错误传播到周围的范围和流程。
应用推荐