xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Pepping <spepp...@leverkruid.nl>
Subject Re: svn commit: r379883 - /xmlgraphics/fop/branches/Temp_API_Finalization/examples/embedding/java/embedding/ExampleFO2PDF.java
Date Mon, 06 Mar 2006 20:20:13 GMT
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


Mime
View raw message