gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 03:40:24 24 4
gpt4 key购买 nike

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

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

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

最佳答案

这是Spring Web Flow相当undocumented的一部分,但是根据SpringSource论坛上的this线程,您可以直接在 View 上将异常作为属性stateExceptionrootCauseException访问。

关于exception-handling - Spring Webflow-使用transition.on-exception属性的访问异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6519223/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com