summaryrefslogtreecommitdiff
path: root/qpid/dotnet/Qpid.Messaging
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.Messaging
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.Messaging')
-rw-r--r--qpid/dotnet/Qpid.Messaging/QpidException.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/qpid/dotnet/Qpid.Messaging/QpidException.cs b/qpid/dotnet/Qpid.Messaging/QpidException.cs
index 7f0c9873e5..dc3391898b 100644
--- a/qpid/dotnet/Qpid.Messaging/QpidException.cs
+++ b/qpid/dotnet/Qpid.Messaging/QpidException.cs
@@ -19,9 +19,11 @@
*
*/
using System;
+using System.Runtime.Serialization;
namespace Qpid.Messaging
{
+ [Serializable]
public class QpidException : Exception
{
public QpidException(string reason) : base(reason)
@@ -32,5 +34,10 @@ namespace Qpid.Messaging
: base(reason, e)
{
}
+
+ protected QpidException(SerializationInfo info, StreamingContext ctxt)
+ : base(info, ctxt)
+ {
+ }
}
}