UnsupportedVersionException class final

The envelope carries a version other than the one this codec speaks.

genesis_dialogue is strict on version (the wire is pure A2UI v0.9): the field must be present and equal to v0.9. A missing field, or a v0.8 version, is rejected here rather than parsed leniently — silently accepting the wrong version is how a standard rots into a dialect.

Inheritance

Constructors

UnsupportedVersionException({required String expected, required Object? actual})
Creates the error for the actual version against expected.
const

Properties

actual Object?
What the envelope actually carried (null when the field was absent).
final
expected String
The version this codec speaks (v0.9).
final
hashCode int
The hash code for this object.
no setterinherited
message String
Human/LLM-readable description assembled from the structured fields.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited