OpenWebbeans CDI 装饰器抛出 InspirationTargetException
我有一个 CDI 装饰器,它调用委托,并且委托抛出一个自定义的异常。现在的问题是,它是在 throws 子句中声明的,但被包装在 InvocableTargetException 中,并且该方法的调用者永远不会知道真正的异常是什么。这有什么问题吗?
I have a CDI decorator which calls the delegate and the delegate throws a self defined exception. Now the problem is, that it is declared in the throws clause, but is wrapped within an InvocationTargetException and the caller of the method will never know what the real exception was. What is the problem about that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
几个这样的错误已经被解决,但如果存在这样的挥之不去的情况,即异常没有正确解包,我不会感到惊讶。我建议打开错误报告。
Several bugs like this have been shaken out, but I would not be surprised if there are lingering cases like this where exceptions are not properly unwrapped. I'd suggest opening a bug report.