2 // Microsoft.Web.Services.Routing.RoutingFault.cs
4 // Author: Todd Berman <tberman@gentoo.org>
6 // (C) 2003 Todd Berman
10 using System
.Web
.Services
.Protocols
;
12 namespace Microsoft
.Web
.Services
.Routing
14 public class RoutingFault
: Exception
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 ()
34 public RoutingFault (string code
, string reason
, int maxtime
, Exception ex
) : base (reason
)
39 _detailedException
= ex
;
42 public RoutingFault (string code
, string reason
, string endpoint
, Exception ex
) : base (reason
)
47 _detailedException
= ex
;
50 public RoutingFault (string code
, string reason
, Exception ex
) : base (reason
)
54 _detailedException
= ex
;
57 public SoapHeaderException
GetSoapHeaderException ()
59 return new SoapHeaderException (Reason
, SoapException
.ClientFaultCode
, DetailException
);
63 public XmlElement
GetXml (XmlDocument doc
)
65 throw new NotImplementedException ();
69 public void LoadXml (XmlElement element
)
71 throw new NotImplementedException ();
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; }
90 get { return _found; }
91 set { _found = value; }
95 get { return _maxsize; }
96 set { _maxsize = value; }
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; }