cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Throwing errors in component's initialize() method
Date Fri, 25 Jun 2004 13:12:50 GMT
Bart Molenkamp wrote:

>Ok, thanks,
>But could you tell me why it catches only exceptions, and not errors?
>(Just interested).

Because, quoting the Javadoc, "An Error is a subclass of Throwable that 
indicates serious problems that a reasonable application should not try 
to catch."

This has been discussed several times (dig the archives for 
"Throwable"), and IIRC the conclusion was that the only error that would 
make sense for Cocoon to catch is OutOfMemoryError.


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

View raw message