MrzGenerationUnsupportedCharacters

data class MrzGenerationUnsupportedCharacters(val format: MrzFormat, val field: MrzField, val unmappedCharacters: List<UnmappedCharacter>, val observedValue: String) : MrzGenerationError

Generation error: a value has characters outside A-Z, 0-9, and < that no profile mapped.

Reported when no transliteration profile was given, or when the profile could not map every character. generate(document) reports it for text already in the document.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(format: MrzFormat, field: MrzField, unmappedCharacters: List<UnmappedCharacter>, observedValue: String)

Properties

Link copied to clipboard
open override val description: String

English text for logs: the format, the field, and the positions. It never contains the characters or the value; they are in the properties.

Link copied to clipboard

The field that holds the value.

Link copied to clipboard

The format being generated.

Link copied to clipboard

The value that failed.

Link copied to clipboard

Each character that could not be mapped, with its position in the value.

Functions

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

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