eriq-augustine / jocr

Japanese OCR
GNU General Public License v2.0
9 stars 5 forks source link

Reduce the number of Exceptions thrown #5

Open eriq-augustine opened 11 years ago

eriq-augustine commented 11 years ago

Because of ImageMagick, there are MANY exceptions being thrown.

Probably about half of the image processing functions just throw Exception.

Somehow handle the errors better.

eriq-augustine commented 10 years ago

Issue #6 was complete in 68575c018a91fc9fbf7f3e23be6fe45506c31386.

This should really help. When making the changes, I removed Exceptions where I remembered here and there. All the difficult work for this one is complete.

The only real bit left besides actually just removing exceptions that PDCClassifier has some constructors that throw. These should probably be moved to static functions that return null on error.