class TcpConnectTimeoutException
source · line 113public
public class TcpConnectTimeoutException internal constructor(
/**
* The originally requested host name.
*/
public val host: OsString,
/**
* The requested destination port.
*/
public val port: Int,
/**
* The configured timeout duration.
*/
public val limit: Duration,
/**
* The measured elapsed time when the timeout was reported.
*/
public val elapsed: Duration,
/**
* The concrete candidate failures collected before termination.
*/
public val attempts: Array<TcpConnectionFailure>,
/**
* Address-family lookup failures collected before termination.
*/
public val resolutionFailures: Array<TcpResolutionFailure>
) : Exception(Some("TCP connection timeout"))
- Supertype
Exception - Inherited
val message: Option<String>· Exception - Inherited
fun printStackTrace(): Unit· Throwable
The connection procedure exceeded its configured limit; retains completed attempt and resolution failures.
property host
source · line 117public
public val host: OsString
get: public read-only
The originally requested host name.
property elapsed
source · line 129public
public val elapsed: Duration
get: public read-only
The measured elapsed time when the timeout was reported.
property limit
source · line 125public
public val limit: Duration
get: public read-only
The configured timeout duration.
property port
source · line 121public
public val port: Int
get: public read-only
The requested destination port.
property attempts
source · line 133public
public val attempts: Array<TcpConnectionFailure>
get: public read-only
The concrete candidate failures collected before termination.
property resolutionFailures
source · line 137public
public val resolutionFailures: Array<TcpResolutionFailure>
get: public read-only
Address-family lookup failures collected before termination.