structuralFailure

The structural failure that stopped the input from being read: a wrong line count or length, a character outside the MRZ alphabet, or an undetected format.

The validate overloads that take a string or lines set it when the parse fails. validate(document) sets it when the document's rawLines do not fit its format or hold a character outside the MRZ alphabet, and never reports an undetected format. Default: null.