简体   繁体   English

OpenWebbeans CDI装饰器抛出InvocationTargetException

[英]OpenWebbeans CDI Decorator throws InvocationTargetException

I have a CDI decorator which calls the delegate and the delegate throws a self defined exception. 我有一个CDI装饰器,该装饰器调用委托,并且委托引发自定义异常。 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. 现在的问题是,它是在throws子句中声明的,但是被包装在InvocationTargetException中,并且方法的调用者永远不会知道真正的异常是什么。 What is the problem about that? 有什么问题吗?

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. 我建议打开一个错误报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM