152 lines
7.6 KiB
C#
152 lines
7.6 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Net
|
|
{
|
|
/// <summary>The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.</summary>
|
|
// Token: 0x02000239 RID: 569
|
|
[Token(Token = "0x2000239")]
|
|
[Serializable]
|
|
public class WebException : InvalidOperationException, ISerializable
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebException" /> class.</summary>
|
|
// Token: 0x06000E44 RID: 3652 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E44")]
|
|
[Address(RVA = "0x403E70", Offset = "0x402C70", VA = "0x180403E70")]
|
|
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: 0x06000E45 RID: 3653 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E45")]
|
|
[Address(RVA = "0x403FA0", Offset = "0x402DA0", VA = "0x180403FA0")]
|
|
public WebException(string message)
|
|
{
|
|
}
|
|
|
|
/// <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: 0x06000E46 RID: 3654 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E46")]
|
|
[Address(RVA = "0x403F80", Offset = "0x402D80", VA = "0x180403F80")]
|
|
public WebException(string message, Exception 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: 0x06000E47 RID: 3655 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E47")]
|
|
[Address(RVA = "0x403FC0", Offset = "0x402DC0", VA = "0x180403FC0")]
|
|
public WebException(string message, WebExceptionStatus status)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E48 RID: 3656 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E48")]
|
|
[Address(RVA = "0x4041A0", Offset = "0x402FA0", VA = "0x1804041A0")]
|
|
internal WebException(string message, WebExceptionStatus status, WebExceptionInternalStatus internalStatus, Exception innerException)
|
|
{
|
|
}
|
|
|
|
/// <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: 0x06000E49 RID: 3657 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E49")]
|
|
[Address(RVA = "0x404050", Offset = "0x402E50", VA = "0x180404050")]
|
|
public WebException(string message, Exception innerException, WebExceptionStatus status, WebResponse response)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E4A RID: 3658 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4A")]
|
|
[Address(RVA = "0x403EC0", Offset = "0x402CC0", VA = "0x180403EC0")]
|
|
internal WebException(string message, string data, Exception innerException, WebExceptionStatus status, WebResponse response)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E4B RID: 3659 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4B")]
|
|
[Address(RVA = "0x403DD0", Offset = "0x402BD0", VA = "0x180403DD0")]
|
|
internal WebException(string message, Exception innerException, WebExceptionStatus status, WebResponse response, WebExceptionInternalStatus internalStatus)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E4C RID: 3660 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4C")]
|
|
[Address(RVA = "0x4040E0", Offset = "0x402EE0", VA = "0x1804040E0")]
|
|
internal WebException(string message, string data, Exception innerException, WebExceptionStatus status, WebResponse response, WebExceptionInternalStatus internalStatus)
|
|
{
|
|
}
|
|
|
|
/// <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: 0x06000E4D RID: 3661 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4D")]
|
|
[Address(RVA = "0x403E90", Offset = "0x402C90", VA = "0x180403E90")]
|
|
protected WebException(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
}
|
|
|
|
/// <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: 0x06000E4E RID: 3662 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4E")]
|
|
[Address(RVA = "0x403DA0", Offset = "0x402BA0", VA = "0x180403DA0", Slot = "4")]
|
|
void ISerializable.GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
}
|
|
|
|
/// <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: 0x06000E4F RID: 3663 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E4F")]
|
|
[Address(RVA = "0x403D80", Offset = "0x402B80", VA = "0x180403D80", Slot = "10")]
|
|
public override void GetObjectData(SerializationInfo serializationInfo, StreamingContext streamingContext)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the status of the response.</summary>
|
|
/// <returns>One of the <see cref="T:System.Net.WebExceptionStatus" /> values.</returns>
|
|
// Token: 0x170002A7 RID: 679
|
|
// (get) Token: 0x06000E50 RID: 3664 RVA: 0x00007230 File Offset: 0x00005430
|
|
[Token(Token = "0x170002A7")]
|
|
public WebExceptionStatus Status
|
|
{
|
|
[Token(Token = "0x6000E50")]
|
|
[Address(RVA = "0x404240", Offset = "0x403040", VA = "0x180404240")]
|
|
get
|
|
{
|
|
return WebExceptionStatus.Success;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000840 RID: 2112
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4000840")]
|
|
private WebExceptionStatus m_Status;
|
|
|
|
// Token: 0x04000841 RID: 2113
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4000841")]
|
|
private WebResponse m_Response;
|
|
|
|
// Token: 0x04000842 RID: 2114
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4000842")]
|
|
[NonSerialized]
|
|
private WebExceptionInternalStatus m_InternalStatus;
|
|
}
|
|
}
|