diff options
Diffstat (limited to 'dotnet/Qpid.Client/Client/AMQConnection.cs')
-rw-r--r-- | dotnet/Qpid.Client/Client/AMQConnection.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dotnet/Qpid.Client/Client/AMQConnection.cs b/dotnet/Qpid.Client/Client/AMQConnection.cs index da8498f938..4498ba3a32 100644 --- a/dotnet/Qpid.Client/Client/AMQConnection.cs +++ b/dotnet/Qpid.Client/Client/AMQConnection.cs @@ -157,7 +157,10 @@ namespace Qpid.Client if (!_failoverPolicy.FailoverAllowed()) { - throw new AMQConnectionException("Unable to connect", lastException); + if ( lastException is AMQException ) + throw lastException; + else + throw new AMQConnectionException("Unable to connect", lastException); } // TODO: this needs to be redone so that we are not spinning. |