blob: e3607a15a432e1a85875ab034f042685c7b7f9f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
//
// System.Net.WebException.cs
//
// Author:
// Lawrence Pit (loz@cable.a2000.nl)
//
using System.Runtime.Serialization;
namespace System.Net
{
[Serializable]
public class WebException : InvalidOperationException, ISerializable
{
private WebResponse response;
private WebExceptionStatus status;
// Constructors
public WebException () : base ()
{
}
public WebException (string message) : base (message)
{
}
protected WebException (SerializationInfo serializationInfo,
StreamingContext streamingContext)
: base (serializationInfo, streamingContext)
{
}
public WebException (string message, Exception innerException)
: base (message, innerException)
{
}
public WebException (string message, WebExceptionStatus status)
: base (message)
{
this.status = status;
}
public WebException(string message,
Exception innerException,
WebExceptionStatus status,
WebResponse response)
: base (message, innerException)
{
this.status = status;
this.response = response;
}
// Properties
public WebResponse Response {
get { return this.response; }
}
public WebExceptionStatus Status {
get { return this.status; }
}
// Methods
void ISerializable.GetObjectData (SerializationInfo info, StreamingContext context)
{
base.GetObjectData (info, context);
}
}
}
|