poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: POI stability
Date Sun, 18 Jul 2010 11:27:10 GMT
On Fri, 16 Jul 2010, Zhang Zhang wrote:
> Can we have a mode in POI that customer can handle the exceptions 
> themself? Or has a parameter to control the behavior when exceptions 
> happened?

try {
 	// POI Stuff
} catch(Throwable t) {
 	// Handle
}

?

Generally, there are two ways to get POI to throw an exception. One is to 
ask it to do something clearly silly. You can avoid these by not asking it 
to do silly things... The other is to feed it a broken file. You can avoid 
this by not giving it broken files...!

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message