MrzInvalidSexValue

data class MrzInvalidSexValue(val observed: Char, val position: Int) : MrzValidationError

Validation failure: the sex character is not M, F, <, or X.

Reported by the validator. The parsed Sex is UNSPECIFIED for this character, and CommonFields.rawSex keeps it. The character X is reported as MrzSexCharacterX instead.

Since

0.1.0

Constructors

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

Properties

Link copied to clipboard
open override val description: String

English text for logs: the position and the accepted set. It never contains the character; that is in observed.

Link copied to clipboard

The sex character as printed.

Link copied to clipboard

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

Functions

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

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