cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: [HELP]Language Exception
Date Wed, 23 Jul 2003 08:49:29 GMT
Geoff Howard wrote:

> Nicolas Spilman wrote:
> ...
> 
>> // start error (lines 67-67) "Default constructor cannot handle exception
>> type ParameterException thrown by implicit super constructor. Must 
>> define an
>> explicit constructor"
>>   String letter = parameters.getParameter("letter");
>>
>> // end error
> 
> 
> I think this is just because parameters.getParameter(String) throws an 
> exception which you are not catching.  An alternative is to use the 
> version with a default parameters.getParameter(String, String) which 
> does not throw the exception.
> 
> Why it gave the specific exception you see I don't quite know.

It's because the declaration is in the class body and therefore
executed in the default constructor (which does not handle this
exception).

Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message