IdentifyTimeoutException.fromException constructor
IdentifyTimeoutException.fromException({})
Creates an IdentifyTimeoutException from a generic exception.
This factory method helps convert generic timeout exceptions into typed IdentifyTimeoutException instances.
Implementation
factory IdentifyTimeoutException.fromException({
required PeerId peerId,
required Object exception,
Duration? timeout,
}) {
return IdentifyTimeoutException(
peerId: peerId,
message: 'Identify timeout for peer $peerId',
timeout: timeout,
cause: exception,
);
}