diff options
| author | Robert Greig <rgreig@apache.org> | 2007-01-05 10:26:09 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2007-01-05 10:26:09 +0000 |
| commit | a7c424416087c556ac045786009473f0e6d93e40 (patch) | |
| tree | 2b1666b113d543de0502fed1182d4e266cd04eb9 /dotnet/Qpid.Buffer | |
| parent | 4715a67339128b092cde470bc41ba054fa79fd3a (diff) | |
| download | qpid-python-a7c424416087c556ac045786009473f0e6d93e40.tar.gz | |
Patch for Qpid-246 applied. Makes exceptions serializable.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@492963 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Buffer')
| -rw-r--r-- | dotnet/Qpid.Buffer/BufferDataException.cs | 7 | ||||
| -rw-r--r-- | dotnet/Qpid.Buffer/BufferOverflowException.cs | 8 | ||||
| -rw-r--r-- | dotnet/Qpid.Buffer/BufferUnderflowException.cs | 8 |
3 files changed, 23 insertions, 0 deletions
diff --git a/dotnet/Qpid.Buffer/BufferDataException.cs b/dotnet/Qpid.Buffer/BufferDataException.cs index 1c6c37e84f..bce2d7ef5a 100644 --- a/dotnet/Qpid.Buffer/BufferDataException.cs +++ b/dotnet/Qpid.Buffer/BufferDataException.cs @@ -19,6 +19,7 @@ * */ using System; +using System.Runtime.Serialization; namespace Qpid.Buffer { @@ -26,6 +27,7 @@ namespace Qpid.Buffer * A {@link RuntimeException} which is thrown when the data the {@link ByteBuffer} * contains is corrupt. */ + [Serializable] public class BufferDataException : Exception { public BufferDataException() @@ -43,5 +45,10 @@ namespace Qpid.Buffer public BufferDataException( Exception cause ) : base("", cause) { } + + protected BufferDataException(SerializationInfo info, StreamingContext ctxt) + : base(info, ctxt) + { + } } } diff --git a/dotnet/Qpid.Buffer/BufferOverflowException.cs b/dotnet/Qpid.Buffer/BufferOverflowException.cs index b5896262da..2a7ad064d5 100644 --- a/dotnet/Qpid.Buffer/BufferOverflowException.cs +++ b/dotnet/Qpid.Buffer/BufferOverflowException.cs @@ -19,14 +19,22 @@ * */ using System; +using System.Runtime.Serialization; namespace Qpid.Buffer { + [Serializable] public class BufferOverflowException : Exception { public BufferOverflowException(string message) : base(message) { } + + protected BufferOverflowException(SerializationInfo info, StreamingContext ctxt) + : base(info, ctxt) + { + } } } + diff --git a/dotnet/Qpid.Buffer/BufferUnderflowException.cs b/dotnet/Qpid.Buffer/BufferUnderflowException.cs index 9de6b6558f..c0cb850e63 100644 --- a/dotnet/Qpid.Buffer/BufferUnderflowException.cs +++ b/dotnet/Qpid.Buffer/BufferUnderflowException.cs @@ -19,15 +19,23 @@ * */ using System; +using System.Runtime.Serialization; namespace Qpid.Buffer { + [Serializable] public class BufferUnderflowException : Exception { public BufferUnderflowException(string message) : base(message) { } + + protected BufferUnderflowException(SerializationInfo info, StreamingContext ctxt) + : base(info, ctxt) + { + } } } + |
