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: 0x02000235 RID: 565
|
|
[Token(Token = "0x2000235")]
|
|
[Serializable]
|
|
public class WebException : InvalidOperationException, ISerializable
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Net.WebException" /> class.</summary>
|
|
// Token: 0x06000E2E RID: 3630 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E2E")]
|
|
[Address(RVA = "0x7755C0", Offset = "0x7745C0", VA = "0x1807755C0")]
|
|
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: 0x06000E2F RID: 3631 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E2F")]
|
|
[Address(RVA = "0x7756F0", Offset = "0x7746F0", VA = "0x1807756F0")]
|
|
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: 0x06000E30 RID: 3632 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E30")]
|
|
[Address(RVA = "0x7756D0", Offset = "0x7746D0", VA = "0x1807756D0")]
|
|
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: 0x06000E31 RID: 3633 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E31")]
|
|
[Address(RVA = "0x775710", Offset = "0x774710", VA = "0x180775710")]
|
|
public WebException(string message, WebExceptionStatus status)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E32 RID: 3634 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E32")]
|
|
[Address(RVA = "0x7758F0", Offset = "0x7748F0", VA = "0x1807758F0")]
|
|
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: 0x06000E33 RID: 3635 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E33")]
|
|
[Address(RVA = "0x7757A0", Offset = "0x7747A0", VA = "0x1807757A0")]
|
|
public WebException(string message, Exception innerException, WebExceptionStatus status, WebResponse response)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E34 RID: 3636 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E34")]
|
|
[Address(RVA = "0x775610", Offset = "0x774610", VA = "0x180775610")]
|
|
internal WebException(string message, string data, Exception innerException, WebExceptionStatus status, WebResponse response)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E35 RID: 3637 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E35")]
|
|
[Address(RVA = "0x775520", Offset = "0x774520", VA = "0x180775520")]
|
|
internal WebException(string message, Exception innerException, WebExceptionStatus status, WebResponse response, WebExceptionInternalStatus internalStatus)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000E36 RID: 3638 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E36")]
|
|
[Address(RVA = "0x775830", Offset = "0x774830", VA = "0x180775830")]
|
|
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: 0x06000E37 RID: 3639 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E37")]
|
|
[Address(RVA = "0x7755E0", Offset = "0x7745E0", VA = "0x1807755E0")]
|
|
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: 0x06000E38 RID: 3640 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E38")]
|
|
[Address(RVA = "0x7754F0", Offset = "0x7744F0", VA = "0x1807754F0", 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: 0x06000E39 RID: 3641 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000E39")]
|
|
[Address(RVA = "0x7754D0", Offset = "0x7744D0", VA = "0x1807754D0", 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: 0x170002A3 RID: 675
|
|
// (get) Token: 0x06000E3A RID: 3642 RVA: 0x00007218 File Offset: 0x00005418
|
|
[Token(Token = "0x170002A3")]
|
|
public WebExceptionStatus Status
|
|
{
|
|
[Token(Token = "0x6000E3A")]
|
|
[Address(RVA = "0x4F3F50", Offset = "0x4F2F50", VA = "0x1804F3F50")]
|
|
get
|
|
{
|
|
return WebExceptionStatus.Success;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000833 RID: 2099
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4000833")]
|
|
private WebExceptionStatus m_Status;
|
|
|
|
// Token: 0x04000834 RID: 2100
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4000834")]
|
|
private WebResponse m_Response;
|
|
|
|
// Token: 0x04000835 RID: 2101
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4000835")]
|
|
[NonSerialized]
|
|
private WebExceptionInternalStatus m_InternalStatus;
|
|
}
|
|
}
|