gpt4 book ai didi

java - 接缝吞没 JDBC 异常

转载 作者:太空宇宙 更新时间:2023-11-04 08:31:03 25 4
gpt4 key购买 nike

我正在使用 Seam 2.1,但是当我收到 JDBC 异常抛出代理调用时,框架会吞下异常而不记录它。有什么办法可以显示异常吗?

谢谢

最佳答案

你见过this吗? ?

JSF is surprisingly limited when it comes to exception handling. As a partial workaround for this problem, Seam lets you define how a particular class of exception is to be treated by annotating the exception class, or declaring the exception class in an XML file. This facility is meant to be combined with the EJB 3.0-standard @ApplicationException annotation which specifies whether the exception should cause a transaction rollback.

关于java - 接缝吞没 JDBC 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7499746/

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