FetchException class Null safety

Throw when an error occurs fetching a resource.

Inheritance

Constructors

FetchException(String message)
ctor
FetchException.fromException(SocketException e)
Create an exception from a SocketException
FetchException.fromHttpError(int? errorCode, String reasonPhrase)
Create a FetchException as the result of a HTTP error.

Properties

cause Object?
If DCliException is wrapping another exception then this is the exeception that is wrapped.
final, inherited
errorCode int?
If this FetchException occured due to an OSError then this contains the underlying error.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
message String
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stackTrace StackTraceImpl
read / write, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
printStackTrace() → void
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited