mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 12:31:30 -10:00
* WebRequest.cs: added * WebResponse.cs: implemented * WebException.cs: implemented * WebHeaderCollection.cs: added * HttpVersion.cs: implemented * HttpContinueDelegate.cs: added * IWebProxy.cs: added * IWebRequestCreate.cs: added * ICertificatePolicy.cs: added * ServicePoint.cs: stubbed * ServicePointManager.cs: stubbed * CookieContainer.cs: added * Authorization.cs: implemented svn path=/trunk/mcs/; revision=4315
75 lines
1.5 KiB
C#
75 lines
1.5 KiB
C#
//
|
|
// System.Net.WebException.cs
|
|
//
|
|
// Author:
|
|
// Lawrence Pit ([email protected])
|
|
//
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|