Ktx2FormatException class Assets and loading
Thrown when bytes are not a valid KTX2 file or exceed what this reader supports (e.g. a 64-bit offset that does not fit in a web-safe integer).
A FormatException so callers can catch malformed input uniformly with every other decoder the engine ships.
- Implemented types
Constructors
- Ktx2FormatException(String message)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A message describing the format error.
final
- offset → int?
-
The offset in source where the error was detected.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → Object?
-
The actual source input which caused the error.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited