MrzGenerationFieldOverflow

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

Generation error: a value is longer than its field allows in the format.

The generator never shortens a value.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(format: MrzFormat, field: MrzField, maxLength: 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

The field that overflowed.

Link copied to clipboard

The format being generated.

Link copied to clipboard

Maximum length of the field, in characters.

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

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