Bug 54938

Summary: WorkbookFactory.create(InputStream) throws IllegalArgumentException, not InvalidFormatException
Product: POI Reporter: apache
Component: POI OverallAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 3.9-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description apache 2013-05-08 14:16:21 UTC
As in the subject: org.apachi.poi.ss.usermodel.WorkbookFactory, line 75.

In my opinion this should throw an InvalidFormatException since the latter is a traced exception, and "input file of unrecognised format" is probably an error that should be handled.
Comment 1 Dominik Stadler 2015-08-17 20:56:14 UTC
In r1696338 we changed the throw to InvalidFormatException() as this is documented in the javadoc section of these methods so it makes sense to throw this exception in these cases as well.