I don't necessarily disagree. I just found the behavior a bit 
surprising which is why I wanted to run it by you. Anyway, thanks for 
the reply :)

Gili

[email protected] wrote:
> On Jan 6, 9:10 am, Gili <[email protected]> wrote:
>> I forgot to mention the context. What is going on is that my
>> application tries to inject a class called MultiPartReader, which in
>> turn depends upon JavaMail which is missing. My application asks Guice
>> "can you inject MultiPartReader?" and it replies with
>> NoClassDefFoundError which is a bit unexpected. I am somewhat
>> expecting it to answer "no, and here's why" not throw an exception
>> that indicates the checking process itself failed.
> 
> Guice doesn't catch Errors, or attempt to recover from them. From the
> Error Javadoc:
>   An Error is a subclass of Throwable that indicates serious problems
> that a reasonable application should not try to catch.
> 
> This is partly due to the fact that Guice is a reasonable application.
> 
> > 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to