diff options
| author | Robert Greig <rgreig@apache.org> | 2007-01-05 17:00:41 +0000 |
|---|---|---|
| committer | Robert Greig <rgreig@apache.org> | 2007-01-05 17:00:41 +0000 |
| commit | bf9d3b6d38bd1232776626a6624620cae4911f10 (patch) | |
| tree | cd4d7f4475c03345d80ad354b84986a70cea1c4d /qpid/dotnet/Qpid.Codec/ProtocolDecoderException.cs | |
| parent | 77ee523f3adec34bd9194b9697d9f933b7f4d4a7 (diff) | |
| download | qpid-python-bf9d3b6d38bd1232776626a6624620cae4911f10.tar.gz | |
Qpid-246-2 patch applied. Adds serializability to exceptions missed by the first patch.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@493087 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/dotnet/Qpid.Codec/ProtocolDecoderException.cs')
| -rw-r--r-- | qpid/dotnet/Qpid.Codec/ProtocolDecoderException.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/qpid/dotnet/Qpid.Codec/ProtocolDecoderException.cs b/qpid/dotnet/Qpid.Codec/ProtocolDecoderException.cs index 94f3e6a591..562145288c 100644 --- a/qpid/dotnet/Qpid.Codec/ProtocolDecoderException.cs +++ b/qpid/dotnet/Qpid.Codec/ProtocolDecoderException.cs @@ -19,9 +19,11 @@ * */ using System; +using System.Runtime.Serialization; namespace Qpid.Codec { + [Serializable] public class ProtocolDecoderException : ProtocolCodecException { private string _hexdump; @@ -37,7 +39,13 @@ namespace Qpid.Codec public ProtocolDecoderException(Exception cause) : base(cause) { } - + + protected ProtocolDecoderException(SerializationInfo info, StreamingContext ctxt) + : base(info, ctxt) + { + _hexdump = info.GetString("HexDump"); + } + public string HexDump { get @@ -49,6 +57,13 @@ namespace Qpid.Codec _hexdump = value; } } + + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + info.AddValue("HexDump", _hexdump); + } } } + |
