@@ -59,7 +59,7 @@ namespace RabbitMQ.Client.Exceptions {
59
59
public class BrokerUnreachableException : IOException
60
60
{
61
61
private IDictionary < AmqpTcpEndpoint , int > m_connectionAttempts ;
62
- private Dictionary < AmqpTcpEndpoint , Exception > m_connectionErrors ;
62
+ private IDictionary < AmqpTcpEndpoint , Exception > m_connectionErrors ;
63
63
64
64
///<summary>A map from AmqpTcpEndpoint to int, counting the
65
65
///number of attempts that were made against each
@@ -72,14 +72,14 @@ public class BrokerUnreachableException: IOException
72
72
public IDictionary < AmqpTcpEndpoint , Exception > ConnectionErrors { get { return m_connectionErrors ; } }
73
73
74
74
///<summary>same as ConnectionErrors property</summary>
75
- public override IDictionary Data { get { return m_connectionErrors ; } }
75
+ public override IDictionary Data { get { return new Dictionary < AmqpTcpEndpoint , Exception > ( m_connectionErrors ) ; } }
76
76
77
77
///<summary>Construct a BrokerUnreachableException. Expects
78
78
///maps as per the description of the ConnectionAttempts and
79
79
///ConnectionErrors properties. The inner exception is associated
80
80
///with only one connection attempt.</summary>
81
81
public BrokerUnreachableException ( IDictionary < AmqpTcpEndpoint , int > connectionAttempts ,
82
- Dictionary < AmqpTcpEndpoint , Exception > connectionErrors ,
82
+ IDictionary < AmqpTcpEndpoint , Exception > connectionErrors ,
83
83
Exception Inner )
84
84
: base ( "None of the specified endpoints were reachable" , Inner )
85
85
{
0 commit comments