diff options
Diffstat (limited to 'dotnet/Qpid.Buffer/BufferDataException.cs')
-rw-r--r-- | dotnet/Qpid.Buffer/BufferDataException.cs | 7 |
1 files changed, 7 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) + { + } } } |