StreamError class

A helper class that helps to handle error gracefully

Implemented types

Constructors

StreamError(List<ErrorLocation> _locations, Error _error, dynamic _payload)
StreamError.composeLocation(StreamError streamError, ErrorLocation location)
Init the StreamError from a previous StreamError, and add new ErrorLocation to StreamError.locations
StreamError.init(ErrorLocation location, Error _error, dynamic _payload)
Init the StreamError from initial ErrorLocation, Error, and a dynamic payload

Properties

error Error
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isLoading bool
read-only, override
locations List<ErrorLocation>
read-only
payload → dynamic
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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