TransportUnavailableException class
Exception thrown when a transport is enabled but has no working backend on the current platform.
Browser-based transports such as WebTransport and WebRTC are only implemented for the web platform. On platforms without a backend (for example the Dart VM/IO platform) the corresponding stubs throw this exception instead of UnimplementedError so callers can distinguish an unavailable platform backend from a genuine implementation gap.
- Implemented types
Constructors
-
Creates a TransportUnavailableException with the given
message. -
Creates a TransportUnavailableException naming the
transportthat is unavailable and theplatformit was requested on.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited