Files
2026-06-04 11:42:34 +02:00

122 lines
6.0 KiB
C#

using System;
using System.Runtime.Serialization;
namespace System.Net
{
/// <summary>The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.</summary>
// Token: 0x02000266 RID: 614
[Serializable]
public class WebException : InvalidOperationException, ISerializable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebException" /> class.</summary>
// Token: 0x06001690 RID: 5776 RVA: 0x0004BBC8 File Offset: 0x00049DC8
public WebException()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebException" /> class with the specified error message.</summary>
/// <param name="message">The text of the error message. </param>
// Token: 0x06001691 RID: 5777 RVA: 0x0004BBD8 File Offset: 0x00049DD8
public WebException(string message)
: base(message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebException" /> class from the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> instances.</summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that contains the information required to serialize the new <see cref="T:System.Net.WebException" />. </param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the source of the serialized stream that is associated with the new <see cref="T:System.Net.WebException" />. </param>
// Token: 0x06001692 RID: 5778 RVA: 0x0004BBEC File Offset: 0x00049DEC
protected WebException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebException" /> class with the specified error message and nested exception.</summary>
/// <param name="message">The text of the error message. </param>
/// <param name="innerException">A nested exception. </param>
// Token: 0x06001693 RID: 5779 RVA: 0x0004BC00 File Offset: 0x00049E00
public WebException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebException" /> class with the specified error message and status.</summary>
/// <param name="message">The text of the error message. </param>
/// <param name="status">One of the <see cref="T:System.Net.WebExceptionStatus" /> values. </param>
// Token: 0x06001694 RID: 5780 RVA: 0x0004BC14 File Offset: 0x00049E14
public WebException(string message, WebExceptionStatus status)
: base(message)
{
this.status = status;
}
// Token: 0x06001695 RID: 5781 RVA: 0x0004BC2C File Offset: 0x00049E2C
internal WebException(string message, Exception innerException, WebExceptionStatus status)
: base(message, innerException)
{
this.status = status;
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebException" /> class with the specified error message, nested exception, status, and response.</summary>
/// <param name="message">The text of the error message. </param>
/// <param name="innerException">A nested exception. </param>
/// <param name="status">One of the <see cref="T:System.Net.WebExceptionStatus" /> values. </param>
/// <param name="response">A <see cref="T:System.Net.WebResponse" /> instance that contains the response from the remote host. </param>
// Token: 0x06001696 RID: 5782 RVA: 0x0004BC48 File Offset: 0x00049E48
public WebException(string message, Exception innerException, WebExceptionStatus status, WebResponse response)
: base(message, innerException)
{
this.status = status;
this.response = response;
}
/// <summary>Serializes this instance into the specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object.</summary>
/// <param name="serializationInfo">The object into which this <see cref="T:System.Net.WebException" /> will be serialized. </param>
/// <param name="streamingContext">The destination of the serialization. </param>
// Token: 0x06001697 RID: 5783 RVA: 0x0004BC6C File Offset: 0x00049E6C
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
}
/// <summary>Gets the response that the remote host returned.</summary>
/// <returns>If a response is available from the Internet resource, a <see cref="T:System.Net.WebResponse" /> instance that contains the error response from an Internet resource; otherwise, null.</returns>
// Token: 0x17000740 RID: 1856
// (get) Token: 0x06001698 RID: 5784 RVA: 0x0004BC78 File Offset: 0x00049E78
public WebResponse Response
{
get
{
return this.response;
}
}
/// <summary>Gets the status of the response.</summary>
/// <returns>One of the <see cref="T:System.Net.WebExceptionStatus" /> values.</returns>
// Token: 0x17000741 RID: 1857
// (get) Token: 0x06001699 RID: 5785 RVA: 0x0004BC80 File Offset: 0x00049E80
public WebExceptionStatus Status
{
get
{
return this.status;
}
}
/// <summary>Populates a <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance with the data needed to serialize the <see cref="T:System.Net.WebException" />.</summary>
/// <param name="serializationInfo">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> to be used. </param>
/// <param name="streamingContext">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> to be used. </param>
// Token: 0x0600169A RID: 5786 RVA: 0x0004BC88 File Offset: 0x00049E88
public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
{
base.GetObjectData(serializationInfo, streamingContext);
}
// Token: 0x04001256 RID: 4694
private WebResponse response;
// Token: 0x04001257 RID: 4695
private WebExceptionStatus status = WebExceptionStatus.UnknownError;
}
}