corymickelson / CommonPdf

Pdf utility library
16 stars 5 forks source link

exceptions not handled properly in fdf-generator #3

Closed corymickelson closed 7 years ago

corymickelson commented 7 years ago

fdf-generator should throw an error with a human readable message if a fieldname is passed that does not match any fieldnames on the pdf. Currently this error is created in the constructor, and is not thrown. 1.) throw the error 2.) fields validation should also throw/catch any errors

corymickelson commented 7 years ago

Added validation to constructor Added tests