ClientStreamException class
An exception that is thrown if EventSourceClientX.stream fails.
In the case the HTTP-request to the server fails, this exception will be thrown with the original response as payload. This allows you to handle HTTP-errors cleanly.
Note: If the HTTP-Request succeeds, but some errors occure while streaming data, any exception will be thrown from the stream itself. This exception is only used for the case that the initial request fails.
- Implemented types
Constructors
- ClientStreamException.new(Response response)
-
Default constructor
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- response → Response
-
The http response that indicates an error.
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