hoa-le / metadata-extractor

Automatically exported from code.google.com/p/metadata-extractor
0 stars 0 forks source link

Use specialized exception for unsupported file formats #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Today, ImageMetadataReader will throw an ImageProcessingException() for 
unspported file format (using throw new ImageProcessingException("File format 
is not supported")).

It would be helpful if we could catch this error specifically, since we want 
different error handling for this compared to other (unknown errors)

The simplest (and probably also best :-)) way would be to create a subclass 
"UnsupportedFileFormatException" and throw that instead.

Original issue reported on code.google.com by eirik.ly...@gmail.com on 26 Feb 2014 at 12:45

GoogleCodeExporter commented 9 years ago
This issue has been migrated along with the project to GitHub:

https://github.com/drewnoakes/metadata-extractor/issues/21

Original comment by drewnoakes on 19 Nov 2014 at 6:52