VariantFormatException

class VariantFormatException(message: String, val offset: Long = -1, cause: Throwable? = null) : VariantException

The bytes are not a Variant value this implementation can read.

Raised for a truncated value, an out-of-range offset, a field id that is not in the dictionary, a metadata version beyond this implementation, and an unrecognised primitive type id. The project rule is that unknown data is signalled, never defaulted: an unreadable byte means the file cannot be read by this version, not that the value is absent.

Constructors

Link copied to clipboard
constructor(message: String, offset: Long = -1, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard

byte offset, relative to the start of the segment being decoded, at which decoding failed. -1 when no single byte is to blame.