MrzGenerationFieldTooShort

data class MrzGenerationFieldTooShort(val format: MrzFormat, val field: MrzField, val expectedLength: Int, val observedLength: Int, val observedValue: String) : MrzGenerationError

Generation error: a value is shorter than its fixed-width field needs in the format.

Reported for a date part shorter than 2 characters. The generator never pads such a value: a < in a date means "unknown", so padding would invent data.

Since

0.5.3

Constructors

Link copied to clipboard
constructor(format: MrzFormat, field: MrzField, expectedLength: Int, observedLength: Int, observedValue: String)

Properties

Link copied to clipboard
open override val description: String

English text for logs: the format, the field, and both lengths. It never contains the value; that is in observedValue.

Link copied to clipboard

Length the field needs, in characters.

Link copied to clipboard

The field that is too short.

Link copied to clipboard

The format being generated.

Link copied to clipboard

Length of the supplied value, in characters.

Link copied to clipboard

The supplied value.

Functions

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

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