Table of Contents

Class ConnectionRefusedException

Namespace
ATAS.DataFeedsCore.Exceptions
Assembly
ATAS.DataFeedsCore.dll

The counterparty refused the connection for a reason a retry cannot fix (see ConnectionRefusalReason). Raised through OnConnectionError, it makes the base connector stop the reconnection timer on the platform and report the error to the user instead of retrying. It is a fatal connection error for the unattended server hosts: they keep reconnecting and, once the error reaches them, restart the process as they do for any fatal one.

Added in ATAS 8.0.15.

public class ConnectionRefusedException : FatalConnectionErrorEcxeption
Inheritance
object
Exception
ConnectionRefusedException
Extension Methods

Constructors

ConnectionRefusedException(ConnectionRefusalReason, string)

Initializes the exception.

public ConnectionRefusedException(ConnectionRefusalReason reason, string message)

Parameters

reason ConnectionRefusalReason

Why the connection was refused.

message string

The error message.

ConnectionRefusedException(ConnectionRefusalReason, string, Exception)

Initializes the exception with the error that caused it.

public ConnectionRefusedException(ConnectionRefusalReason reason, string message, Exception innerException)

Parameters

reason ConnectionRefusalReason

Why the connection was refused.

message string

The error message.

innerException Exception

The error that caused the refusal.

Properties

Reason

Gets why the connection was refused.

public ConnectionRefusalReason Reason { get; }

Property Value

ConnectionRefusalReason