[webbeans-dev] DefinitionException replacement

Gavin King gavin.king at gmail.com
Wed Jun 17 16:26:25 EDT 2009


On Wed, Jun 17, 2009 at 1:18 PM, David Allen<drallendc at gmail.com> wrote:
> On Wed, 2009-06-17 at 16:11 -0400, Dan Allen wrote:
>> If the DefinitionException is no longer specified, what is the
>> recommend exception to throw/check for when there is a deployment
>> problem? I'd hate to have to write tests that simply checks for
>> Throwable as that would be too general.
>
> There is no expected exception since the Specification does not actually
> say that.  Instead we'll need to update the TCK SPI to include the
> functionality to detect the errors as specified in the specification.

Right, good point. The container is not required to throw any specific
exceptions. All it is required to do is "abort deployment" of the app.


-- 
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org




More information about the weld-dev mailing list