IdentifyTimeoutException class
Exception thrown when identify protocol negotiation times out.
This occurs when the remote peer doesn't respond to the identify protocol within the expected timeout window. Common causes:
- Remote peer has gone offline
- Network connectivity issues
- Remote peer is overloaded and not responding
This exception is NOT a security failure - the peer may be valid but simply unreachable. Applications should handle this gracefully without crashing, typically by:
- Logging the failure
- Removing the peer from active connection pool
- Retrying later with exponential backoff
- Inheritance
-
- Object
- IdentifyException
- IdentifyTimeoutException
Constructors
- IdentifyTimeoutException({PeerId? peerId, required String message, Duration? timeout, Object? cause})
- IdentifyTimeoutException.fromException({required PeerId peerId, required Object exception, Duration? timeout})
-
Creates an IdentifyTimeoutException from a generic exception.
factory
Properties
- cause → Object?
-
The underlying cause of the failure (if any).
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A descriptive message about the failure.
finalinherited
- peerId → PeerId?
-
The peer ID for which identification failed (if known).
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration?
-
The duration before the timeout occurred.
final
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