[cdi-dev] do we like to define a DeploymentException type?
Mark Struberg
struberg at yahoo.de
Fri Jun 15 03:48:23 EDT 2012
Hi!
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?
LieGrue,
strub
More information about the cdi-dev
mailing list