MrzInvalidLength

data class MrzInvalidLength(val format: MrzFormat, val expectedLineCount: Int, val expectedLineLength: Int, val observedLineCount: Int, val observedLineLengths: List<Int>) : MrzParseError

Parse error: the line count or a line length does not fit the format you named.

Reported by format-specific entry points such as parseTD3. The auto-detecting entry point reports MrzFormatNotDetected instead.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(format: MrzFormat, expectedLineCount: Int, expectedLineLength: Int, observedLineCount: Int, observedLineLengths: List<Int>)

Properties

Link copied to clipboard
open override val description: String

English text for logs: the format with expected and observed shapes.

Link copied to clipboard

Number of lines the format has.

Link copied to clipboard

Length of each line in the format, in characters.

Link copied to clipboard

The format the caller asked for.

Link copied to clipboard

Number of lines in the input.

Link copied to clipboard

Length of each input line, in order.

Functions

Link copied to clipboard
open override fun toString(): String

MrzInvalidLength: followed by description, so logs carry no document values.