ZsBT / mrz-java

Machine-Readable Zone parser for Java
71 stars 42 forks source link

RuntimeException thrown instead of MrzParseException #22

Open GoUpNorth opened 7 years ago

GoUpNorth commented 7 years ago

I noticed that RuntimeExceptions are thrown instead of MrzParseExceptions, in 3 different places in the library:

It looks like a bug to me. Shouldn't a MrzParseException be thrown in those cases ?

Regards, P-A

ZsBT commented 7 years ago

Yes, indeed. Those are more like parse than runtime exceptions.