public class BrokerUnreachableException

Summary

Thrown when no connection could be opened during a ConnectionFactory.CreateConnection attempt.

Remarks

CreateConnection (optionally) handles redirections, so even a single-endpoint connection attempt may end up attempting to connect to multiple TCP endpoints. This exception contains information on how many times each endpoint was tried, and the outcome of the most recent attempt against each endpoint. See the ConnectionAttempts and ConnectionErrors properties.

Property Summary

Flags Type Name Summary
public IDictionary ConnectionAttempts (r)

A map from AmqpTcpEndpoint to int, counting the number of attempts that were made against each endpoint.

public IDictionary ConnectionErrors (r)

A map from AmqpTcpEndpoint to Exception, recording the outcome of the most recent connection attempt against each endpoint.

public virtual IDictionary Data (r)

same as ConnectionErrors property

Constructor Summary

Flags Name Summary
public BrokerUnreachableException(IDictionary connectionAttempts, IDictionary connectionErrors, Exception Inner)

Construct a BrokerUnreachableException. Expects maps as per the description of the ConnectionAttempts and ConnectionErrors properties. The inner exception is associated with only one connection attempt.

Method Summary

Flags Name Summary
public virtual string ToString()

Provide a full description of the various connection attempts that were made, as well as the usual Exception stack trace.

Property Detail

public IDictionary ConnectionAttempts (r)

Summary

A map from AmqpTcpEndpoint to int, counting the number of attempts that were made against each endpoint.

public IDictionary ConnectionErrors (r)

Summary

A map from AmqpTcpEndpoint to Exception, recording the outcome of the most recent connection attempt against each endpoint.

public virtual IDictionary Data (r)

Summary

same as ConnectionErrors property

Constructor Detail

BrokerUnreachableException

public BrokerUnreachableException(IDictionary connectionAttempts, IDictionary connectionErrors, Exception Inner)

Parameters
Name Type
connectionAttempts IDictionary
connectionErrors IDictionary
Inner Exception

Summary

Construct a BrokerUnreachableException. Expects maps as per the description of the ConnectionAttempts and ConnectionErrors properties. The inner exception is associated with only one connection attempt.

Method Detail

ToString

public virtual string ToString()

Flags public virtual
Return type string

Summary

Provide a full description of the various connection attempts that were made, as well as the usual Exception stack trace.