DiskException class

Base class for every file storage error.

Carries the name of the disk and the disk-relative path when they are known, and the underlying error in cause when one was wrapped.

Implemented types
Implementers

Constructors

DiskException(String message, {String? disk, String? path, Object? cause})
Creates a new DiskException.
const

Properties

cause → Object?
The error this one wraps, e.g. a FileSystemException.
final
disk → String?
The name of the disk, e.g. local.
final
hashCode → int
The hash code for this object.
no setterinherited
kind → String
The name printed by toString.
no setter
message → String
What went wrong.
final
path → String?
The path on the disk, as the caller wrote it.
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
relocate(String disk, String path) → DiskException
The same error, reported against disk and path.
toString() → String
A string representation of this object.
override

Operators

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