CorruptionException class final

Thrown when data on disk fails validation, such as a checksum mismatch.

Inheritance

Constructors

CorruptionException(String message, {String? path, int? offset, Object? cause})
Creates a corruption exception, optionally locating the damaged bytes.
const

Properties

cause → Object?
The underlying error, when this exception wraps another failure.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
message → String
Description of what went wrong.
finalinherited
offset → int?
Byte offset within path where the damage was detected.
final
path → String?
The file that contains the damaged data.
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