diff options
| author | Charles E. Rolke <chug@apache.org> | 2010-11-02 20:50:54 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2010-11-02 20:50:54 +0000 |
| commit | 958647601758a9cbd78082a76c3583c3ce9e852e (patch) | |
| tree | 6cdf429527ceca889f12ffbfa79b5f52efe69b9c /cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp | |
| parent | a3185a06c97c8775b58e6b5207674f0c1c51e287 (diff) | |
| download | qpid-python-958647601758a9cbd78082a76c3583c3ce9e852e.tar.gz | |
QPID-2923 Qpid Messaging .NET Binding fails to translate exceptions from C++ to .NET
This checkin moves code out of class constructor member initialization and puts it into try-catch blocks. Any SEH Exceptions thrown by the C++ Messaging libraries are caught and re-thrown as .NET exceptions.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1030209 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp')
| -rw-r--r-- | cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp b/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp index 3df06d9557..a931e2d670 100644 --- a/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp +++ b/cpp/bindings/qpid/dotnet/src/FailoverUpdates.cpp @@ -39,14 +39,10 @@ namespace Messaging { /// </summary>
// constructors
- //FailoverUpdates::FailoverUpdates(Connection ^ connection) :
- // failoverupdatesp(new ::qpid::messaging::FailoverUpdates(*(connection->NativeConnection)))
- //{
- //}
FailoverUpdates::FailoverUpdates(Connection ^ connection)
{
- System::Exception ^ newException = nullptr;
+ System::Exception ^ newException = nullptr;
try
{
@@ -62,8 +58,6 @@ namespace Messaging { {
throw newException;
}
-
- return;
}
|
