SocketTimeoutException
classin packageklyn.net
public class SocketTimeoutException extends SocketException:
└ SocketTimeoutException

Reports expiration of a socket connection or I/O deadline.

This subtype lets protocol implementations distinguish a deadline from a generic broken connection without parsing an operating-system message.

import klyn.net

try socket = Socket("example.com", 443):
socket.setTimeoutMillis(1000)
socket.receive()
catch error as SocketTimeoutException:
print("Network deadline expired")
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public SocketTimeoutException
SocketTimeoutException(message as String = "Socket operation timed out"):
Creates a socket timeout exception.
Inherited Methods
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toString, toXml