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 | c37fb7c4b27419cae13c45fb38e24506fd009ea4 (patch) | |
| tree | 4c0a380c17f0406fe95aa2ece26d52759f200800 /dotnet/Qpid.Client/qms | |
| parent | 2d976b546f26b04f41606df6675f3217058d2d6f (diff) | |
| download | qpid-python-c37fb7c4b27419cae13c45fb38e24506fd009ea4.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/qpid@493087 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Client/qms')
| -rw-r--r-- | dotnet/Qpid.Client/qms/UrlSyntaxException.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dotnet/Qpid.Client/qms/UrlSyntaxException.cs b/dotnet/Qpid.Client/qms/UrlSyntaxException.cs index f7aaf56085..e6da62a829 100644 --- a/dotnet/Qpid.Client/qms/UrlSyntaxException.cs +++ b/dotnet/Qpid.Client/qms/UrlSyntaxException.cs @@ -19,10 +19,12 @@ * */ using System; +using System.Runtime.Serialization; using System.Text; namespace Qpid.Client.qms { + [Serializable] public class UrlSyntaxException : UriFormatException { private string _url; @@ -53,6 +55,22 @@ namespace Qpid.Client.qms _length = length; } + protected UrlSyntaxException(SerializationInfo info, StreamingContext ctxt) + : base(info, ctxt) + { + _url = info.GetString("Url"); + _index = info.GetInt32("Index"); + _length = info.GetInt32("Length"); + } + + public override void GetObjectData(SerializationInfo info, StreamingContext context) + { + base.GetObjectData(info, context); + info.AddValue("Url", _url); + info.AddValue("Index", _index); + info.AddValue("Length", _length); + } + private static String getPositionString(int index, int length) { StringBuilder sb = new StringBuilder(index + 1); |
