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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to