Table of Contents

Class ConnectTimeoutException

Namespace
DatabentoDotNet.Live
Assembly
DatabentoDotNet.Live.dll

The connection to the gateway did not complete within ConnectTimeout.

public sealed class ConnectTimeoutException : LiveConnectException, ISerializable
Inheritance
ConnectTimeoutException
Implements
Inherited Members

Remarks

Port of upstream's Error::ConnectTimeout(Duration) (error.rs:51), which likewise carries the budget that elapsed rather than only saying that one did.

This is not what a closed port produces. A refused connection comes back immediately as a LiveConnectException wrapping the socket error; this type means the attempt was still outstanding when the budget ran out, which is what a firewalled or black-holed address looks like. Both derive from LiveConnectException.

Constructors

ConnectTimeoutException()

Creates the exception with no message.

public ConnectTimeoutException()

ConnectTimeoutException(Duration, EndPoint)

Creates the exception for a budget that elapsed.

public ConnectTimeoutException(Duration timeout, EndPoint endPoint)

Parameters

timeout Duration

The budget that elapsed.

endPoint EndPoint

The gateway endpoint the client was connecting to.

ConnectTimeoutException(string)

Creates the exception with a message.

public ConnectTimeoutException(string message)

Parameters

message string

The message.

ConnectTimeoutException(string, Exception)

Creates the exception with a message and an underlying cause.

public ConnectTimeoutException(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The underlying cause.

Properties

Timeout

The connect budget that elapsed.

public Duration Timeout { get; }

Property Value

Duration