MrzCharacterSetViolation

data class MrzCharacterSetViolation(val offendingCharacter: Char, val position: Int) : MrzParseError

Parse error: the input has a character outside A-Z, 0-9, and <.

Reported by the parser when the line count and lengths fit a format. Only the first offending character is reported. Lowercase letters count as outside the alphabet.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(offendingCharacter: Char, position: Int)

Properties

Link copied to clipboard
open override val description: String

English text for logs: the position. It never contains the character; that is in offendingCharacter.

Link copied to clipboard

The first character outside the MRZ alphabet.

Link copied to clipboard

Zero-based index of that character across the lines joined with no separator.

Functions

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

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