BloomRpcTransportException class

Exception thrown when an RPC call fails due to low-level transport, DNS, or socket errors.

Distinguishes network disconnects and unreachable hosts from server response errors.

try {
  await client.call(getTasksContract, null);
} on BloomRpcTransportException catch (e) {
  print('Network down: ${e.message}');
}
Implemented types

Constructors

BloomRpcTransportException({required Object cause, BloomRpcContract? contract, Uri? uri, StackTrace? stackTrace, String? message})
Creates a BloomRpcTransportException wrapping a lower-level transport cause.

Properties

cause → Object
Underlying transport error (e.g. http.ClientException or socket failure).
final
contract → BloomRpcContract?
The RPC contract that was executing when the error occurred, or null.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
Error summary message.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
Stack trace from the underlying failure.
final
uri → Uri?
The target URI of the failed request, or null.
final

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