Failure

data class Failure(val error: MrzParseError, val rawInput: String?, val metadata: ResultMetadata) : ParseResult

The input could not be parsed.

Since

0.1.0

Constructors

Link copied to clipboard
constructor(error: MrzParseError, rawInput: String?, metadata: ResultMetadata)

Properties

Link copied to clipboard

Why parsing failed.

Link copied to clipboard
open override val metadata: ResultMetadata

The reading method, with empty warnings and validation failures.

Link copied to clipboard

The input lines joined with \n.

Functions

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

The error and whether the raw input is present; never the input itself.