ZsBT / mrz-java

Machine-Readable Zone parser for Java
70 stars 40 forks source link

RuntimeException thrown instead of MrzParseException #22

Open GoUpNorth opened 6 years ago

GoUpNorth commented 6 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 6 years ago

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