MrzDateNotInCalendar

data class MrzDateNotInCalendar(val field: MrzField, val rawYear: String, val rawMonth: String, val rawDay: String, val position: Int) : MrzValidationError

Validation failure: a date's numeric parts form no real calendar date, for example month 13.

Reported by the validator for the date of birth and date of expiry when no century turns the parts into a real date. Parts that are not digits are not reported here.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(field: MrzField, rawYear: String, rawMonth: String, rawDay: String, position: Int)

Properties

Link copied to clipboard
open override val description: String

English text for logs: the field and the position. It never contains the date parts; they are in the properties.

Link copied to clipboard

The date field, DATE_OF_BIRTH or DATE_OF_EXPIRY.

Link copied to clipboard

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

Link copied to clipboard

The two day digits as printed.

Link copied to clipboard

The two month digits as printed.

Link copied to clipboard

The two year digits as printed.

Functions

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

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