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