EmbeddingFormatNotSupportedException class final

A media part's container is not one the engine accepts (e.g. HEIC where the engine decodes JPEG/PNG/GIF/BMP only).

Inheritance

Constructors

EmbeddingFormatNotSupportedException(String message, {required EmbeddingModality modality, required EncodedMediaFormat? detected, required Set<EncodedMediaFormat> accepted})
const

Properties

accepted → Set<EncodedMediaFormat>
What the engine accepts for modality.
final
cause → Object?
The underlying error, when there is one. Not carried across the embedding worker boundary (it may not be sendable); there the message says it.
finalinherited
detected → EncodedMediaFormat?
What the bytes look like; null when they match no known container.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
What happened, in words meant for a developer.
finalinherited
modality → EmbeddingModality
final
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