[cdi-dev] do we like to define a DeploymentException type?
lightguard.jp at gmail.com
Fri Jun 15 11:31:28 EDT 2012
Having CDI define (even one) exception would be nice and would make testing extensions for portability much easier. As it currently stands you have to test for implementation specific exceptions.
Sent from my iPhone
On Jun 15, 2012, at 1:48, Mark Struberg <struberg at yahoo.de> wrote:
> While reviewing the DeltaSpike MessageBundleExtension, I (again) came to the point where I didn't knew which Exception to take.
> It might be nice to have a DeploymentException which indicates that a CDI Extension detected a logical problem which is _not_ caused by some technical problems.
> E.g. if a certain annotation must not be used in conjunction with another one. In our case @MessageBundle must only be used on Interfaces. We collect all those problems during ProcessAnnotatedType and add them as AfterBeanDiscovery#addDefinitionError.
> A well defined DeploymentException could help indicating such 'logical' problems, wdyt?
> cdi-dev mailing list
> cdi-dev at lists.jboss.org
More information about the cdi-dev