Christian Beikov
Christian Beikov

Reputation: 16400

OpenWebbeans CDI Decorator throws InvocationTargetException

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?

Upvotes: 0

Views: 222

Answers (1)

covener
covener

Reputation: 17872

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.

Upvotes: 1

Related Questions