diff options
| author | Tomas Restrepo <tomasr@apache.org> | 2007-05-13 23:08:40 +0000 |
|---|---|---|
| committer | Tomas Restrepo <tomasr@apache.org> | 2007-05-13 23:08:40 +0000 |
| commit | 736eb917ebd8a1a007dde5af12257b390ae40108 (patch) | |
| tree | eb8149a24458dda0b45920af0439b9fa07175392 /dotnet/Qpid.Client/Client/AMQConnection.cs | |
| parent | 1a1a11c09f75b72744c6f8e1c6e1a567eeae3886 (diff) | |
| download | qpid-python-736eb917ebd8a1a007dde5af12257b390ae40108.tar.gz | |
Merged revisions 537673 via svnmerge from
https://svn.apache.org/repos/asf/incubator/qpid/branches/M2
........
r537673 | tomasr | 2007-05-13 18:03:30 -0500 (Sun, 13 May 2007) | 3 lines
* QPID-486 Choose strongest SASL Mechanism first
* Remove unnecessary wrapping of AMQExceptions on connection failure
........
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@537676 13f79535-47bb-0310-9956-ffa450edef68
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. |
