On Mon, Mar 06, 2006 at 09:08:42AM +0100, Jeremias Maerki wrote:
> 
> > Added the methods. As you see from my example, I prefer early testing
> > of the consistency of the Fop object.
> 
> OK. However, I don't like your catching the IllegalStateException in the
> example code. An IllegalStateException is a descendant of
> RuntimeException and normally indicates a programmer error. It's not
> something that is usually caught. The example code should be instructive
> to the normal Java developer and should not distract with that try/catch
> around the getDefaultHandler() method IMO.

Neither do I, but I do want to catch the exception, either here or in
the listen method, where it is caught together with all exceptions. If
I do not catch it, the listening will stop, which I do not want.

Regards, Simon

-- 
Simon Pepping
home page: http://www.leverkruid.nl

Reply via email to