Exception handling Spring Webflow-使用transition.on-exception属性访问异常

Exception handling Spring Webflow-使用transition.on-exception属性访问异常,exception-handling,spring-webflow,Exception Handling,Spring Webflow,我想知道如何使用on exception属性访问异常对象? 我当前的配置如下所示: <transition on-exception="{business_exception}" to="errorView" > </transition> 我必须访问errorView中的一些异常属性。 有人知道我怎么做吗?这是SpringWebFlow的一部分,但根据SpringSource论坛上的帖子,您可以直接在视图上访问异常,因为属性stateException和rootc

我想知道如何使用on exception属性访问异常对象? 我当前的配置如下所示:

<transition on-exception="{business_exception}" to="errorView" >
</transition>

我必须访问errorView中的一些异常属性。
有人知道我怎么做吗?

这是SpringWebFlow的一部分,但根据SpringSource论坛上的帖子,您可以直接在视图上访问异常,因为属性
stateException
rootcauseeException

rootcauseeException和flowExecutionException是流中可访问的右作用域变量。这些变量在转换到新流后填充,因此在伪意义上:

<transition on-exception="{business_exception}" to="errorView" >
</transition>

<view-state id="errorView">
  <on-entry>
    <evaluate expression="exceptionHandler(flowExecutionException)"/>
    <evaluate expression="exceptionHandler(rootCauseException)"/> 
  </on-entry>
</view-state>

这可能有效。我在这里找到了另一个解决方案:“您只能直接访问外部级别(通过flowExecutionException)和根本原因(通过rootCauseException)异常”