summaryrefslogtreecommitdiff
path: root/qpid/dotnet/Qpid.Client
diff options
context:
space:
mode:
authorRobert Greig <rgreig@apache.org>2007-01-05 10:26:09 +0000
committerRobert Greig <rgreig@apache.org>2007-01-05 10:26:09 +0000
commit4bd746c40eb9094ce967ea8a3cebeec983de6b0b (patch)
tree14fcd017e8a25dd36f24e5a21776d8fdb5ae4cf9 /qpid/dotnet/Qpid.Client
parent9baaa04848053dfa6877e603eccc6b0ba148103c (diff)
downloadqpid-python-4bd746c40eb9094ce967ea8a3cebeec983de6b0b.tar.gz
Patch for Qpid-246 applied. Makes exceptions serializable.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@492963 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/dotnet/Qpid.Client')
-rw-r--r--qpid/dotnet/Qpid.Client/Client/Failover/FailoverException.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/qpid/dotnet/Qpid.Client/Client/Failover/FailoverException.cs b/qpid/dotnet/Qpid.Client/Client/Failover/FailoverException.cs
index b13b28a66b..e2bc5b8a71 100644
--- a/qpid/dotnet/Qpid.Client/Client/Failover/FailoverException.cs
+++ b/qpid/dotnet/Qpid.Client/Client/Failover/FailoverException.cs
@@ -19,6 +19,7 @@
*
*/
using System;
+using System.Runtime.Serialization;
namespace Qpid.Client.Failover
{
@@ -26,10 +27,16 @@ namespace Qpid.Client.Failover
/// This exception is thrown when failover is taking place and we need to let other
/// parts of the client know about this.
/// </summary>
+ [Serializable]
class FailoverException : Exception
{
public FailoverException(String message) : base(message)
{
}
+
+ protected FailoverException(SerializationInfo info, StreamingContext ctxt)
+ : base(info, ctxt)
+ {
+ }
}
}