Ktx2FormatException class final

Raised when bytes are not a KTX2 file, are truncated, or use a feature this stage of the loader does not read yet — see the library doc comment for exactly which those are.

A distinct type rather than FormatException, so a caller can tell "not our format" from "our format, and a feature we have not built" — the second is a roadmap item, not a broken file.

Implemented types

Constructors

Ktx2FormatException(String message)
const

Properties

cause → Object?
What was thrown underneath, when this one wraps it; null otherwise.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
What went wrong, as a sentence that names the thing it went wrong with.
final
offset → int?
Where in source it failed, where a refusal knows; null by default.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → Object?
A FormatException too, because that is what the engine threw for bad bytes before this family existed, and code written then catches it as on FormatException. Replacing a bare throw with one of these keeps that code catching it.
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.

Operators

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