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
-
objectExceptionConnectionRefusedException
- Extension Methods
Constructors
ConnectionRefusedException(ConnectionRefusalReason, string)
Initializes the exception.
public ConnectionRefusedException(ConnectionRefusalReason reason, string message)
Parameters
reasonConnectionRefusalReasonWhy the connection was refused.
messagestringThe error message.
ConnectionRefusedException(ConnectionRefusalReason, string, Exception)
Initializes the exception with the error that caused it.
public ConnectionRefusedException(ConnectionRefusalReason reason, string message, Exception innerException)
Parameters
reasonConnectionRefusalReasonWhy the connection was refused.
messagestringThe error message.
innerExceptionExceptionThe error that caused the refusal.
Properties
Reason
Gets why the connection was refused.
public ConnectionRefusalReason Reason { get; }