summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Messaging
diff options
context:
space:
mode:
Diffstat (limited to 'dotnet/Qpid.Messaging')
-rw-r--r--dotnet/Qpid.Messaging/ChannelLimitReachedException.cs17
-rw-r--r--dotnet/Qpid.Messaging/MessageNotReadableException.cs10
-rw-r--r--dotnet/Qpid.Messaging/MessageNotWritableException.cs9
-rw-r--r--dotnet/Qpid.Messaging/ResourceAllocationException.cs10
4 files changed, 46 insertions, 0 deletions
diff --git a/dotnet/Qpid.Messaging/ChannelLimitReachedException.cs b/dotnet/Qpid.Messaging/ChannelLimitReachedException.cs
index 645c0d0cdd..0cfd2f24bc 100644
--- a/dotnet/Qpid.Messaging/ChannelLimitReachedException.cs
+++ b/dotnet/Qpid.Messaging/ChannelLimitReachedException.cs
@@ -18,8 +18,13 @@
* under the License.
*
*/
+
+using System;
+using System.Runtime.Serialization;
+
namespace Qpid.Messaging
{
+ [Serializable]
public class ChannelLimitReachedException : ResourceAllocationException
{
private long _limit;
@@ -32,6 +37,12 @@ namespace Qpid.Messaging
_limit = limit;
}
+ protected ChannelLimitReachedException(SerializationInfo info, StreamingContext ctxt)
+ : base(info, ctxt)
+ {
+ _limit = info.GetInt64("Limit");
+ }
+
public long Limit
{
get
@@ -39,5 +50,11 @@ namespace Qpid.Messaging
return _limit;
}
}
+
+ public override void GetObjectData(SerializationInfo info, StreamingContext context)
+ {
+ base.GetObjectData(info, context);
+ info.AddValue("Limit", _limit);
+ }
}
}
diff --git a/dotnet/Qpid.Messaging/MessageNotReadableException.cs b/dotnet/Qpid.Messaging/MessageNotReadableException.cs
index 077a15e719..5a919c2ced 100644
--- a/dotnet/Qpid.Messaging/MessageNotReadableException.cs
+++ b/dotnet/Qpid.Messaging/MessageNotReadableException.cs
@@ -18,12 +18,22 @@
* under the License.
*
*/
+
+using System;
+using System.Runtime.Serialization;
+
namespace Qpid.Messaging
{
+ [Serializable]
public class MessageNotReadableException : QpidException
{
public MessageNotReadableException(string reason) : base(reason)
{
}
+
+ protected MessageNotReadableException(SerializationInfo info, StreamingContext ctxt)
+ : base(info, ctxt)
+ {
+ }
}
}
diff --git a/dotnet/Qpid.Messaging/MessageNotWritableException.cs b/dotnet/Qpid.Messaging/MessageNotWritableException.cs
index 26905e28f3..6d4068c8c4 100644
--- a/dotnet/Qpid.Messaging/MessageNotWritableException.cs
+++ b/dotnet/Qpid.Messaging/MessageNotWritableException.cs
@@ -18,12 +18,21 @@
* under the License.
*
*/
+using System;
+using System.Runtime.Serialization;
+
namespace Qpid.Messaging
{
+ [Serializable]
public class MessageNotWriteableException : QpidException
{
public MessageNotWriteableException(string reason) : base(reason)
{
}
+
+ protected MessageNotWriteableException(SerializationInfo info, StreamingContext ctxt)
+ : base(info, ctxt)
+ {
+ }
}
}
diff --git a/dotnet/Qpid.Messaging/ResourceAllocationException.cs b/dotnet/Qpid.Messaging/ResourceAllocationException.cs
index 076e374d60..a208b3cbbb 100644
--- a/dotnet/Qpid.Messaging/ResourceAllocationException.cs
+++ b/dotnet/Qpid.Messaging/ResourceAllocationException.cs
@@ -18,12 +18,22 @@
* under the License.
*
*/
+
+using System;
+using System.Runtime.Serialization;
+
namespace Qpid.Messaging
{
+ [Serializable]
public class ResourceAllocationException : QpidException
{
public ResourceAllocationException(string reason) : base(reason)
{
}
+
+ protected ResourceAllocationException(SerializationInfo info, StreamingContext ctxt)
+ : base(info, ctxt)
+ {
+ }
}
}