LlamaModelFormatException class

Exception thrown when a model file's content is in one format but its file extension or an explicit format: names another.

The model is not handed to either runtime.

Inheritance

Constructors

LlamaModelFormatException({required ModelFormat detected, required ModelFormat declared})
Creates a new LlamaModelFormatException.

Properties

declared → ModelFormat
The format named by the file extension or the explicit format:.
final
details → dynamic
Optional detail about the error.
finalinherited
detected → ModelFormat
The format read from the file header.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A human-readable error message.
finalinherited
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