**** Merged from MCS ****
[mono-project.git] / mcs / class / Microsoft.Web.Services / Microsoft.Web.Services.Routing / RoutingFault.cs
blob6a4e62e07d8bb0ff8e7f42f32c462e130daba8b5
1 //
2 // Microsoft.Web.Services.Routing.RoutingFault.cs
3 //
4 // Author: Todd Berman <tberman@gentoo.org>
5 //
6 // (C) 2003 Todd Berman
8 using System;
9 using System.Xml;
10 using System.Web.Services.Protocols;
12 namespace Microsoft.Web.Services.Routing
14 public class RoutingFault : Exception
16 private string _code;
17 private Exception _detailedException = null;
18 private string _endpoint;
19 private Found _found = null;
20 private int _maxsize = 0;
21 private int _maxtime = 0;
22 private string _reason;
23 private int _retryAfter = 0;
25 public RoutingFault () : base ()
29 public RoutingFault (XmlElement element) : base ()
31 LoadXml (element);
34 public RoutingFault (string code, string reason, int maxtime, Exception ex) : base (reason)
36 _code = code;
37 _reason = reason;
38 _maxtime = maxtime;
39 _detailedException = ex;
42 public RoutingFault (string code, string reason, string endpoint, Exception ex) : base (reason)
44 _code = code;
45 _reason = reason;
46 _endpoint = endpoint;
47 _detailedException = ex;
50 public RoutingFault (string code, string reason, Exception ex) : base (reason)
52 _code = code;
53 _reason = reason;
54 _detailedException = ex;
57 public SoapHeaderException GetSoapHeaderException ()
59 return new SoapHeaderException (Reason, SoapException.ClientFaultCode, DetailException);
62 [MonoTODO]
63 public XmlElement GetXml (XmlDocument doc)
65 throw new NotImplementedException ();
68 [MonoTODO]
69 public void LoadXml (XmlElement element)
71 throw new NotImplementedException ();
74 public string Code {
75 get { return _code; }
76 set { _code = value; }
79 public Exception DetailException {
80 get { return _detailedException; }
81 set { _detailedException = value; }
84 public string Endpoint {
85 get { return _endpoint; }
86 set { _endpoint = value; }
89 public Found Found {
90 get { return _found; }
91 set { _found = value; }
94 public int MaxSize {
95 get { return _maxsize; }
96 set { _maxsize = value; }
99 public int MaxTime {
100 get { return _maxtime; }
101 set { _maxtime = value; }
104 public string Reason {
105 get { return _reason; }
106 set { _reason = value; }
109 public int RetryAfter {
110 get { return _retryAfter; }
111 set { _retryAfter = value; }