using System; using System.Runtime.Serialization; namespace System.Net { /// The exception that is thrown when an error occurs while accessing the network through a pluggable protocol. // Token: 0x02000266 RID: 614 [Serializable] public class WebException : InvalidOperationException, ISerializable { /// Initializes a new instance of the class. // Token: 0x06001690 RID: 5776 RVA: 0x0004BBC8 File Offset: 0x00049DC8 public WebException() { } /// Initializes a new instance of the class with the specified error message. /// The text of the error message. // Token: 0x06001691 RID: 5777 RVA: 0x0004BBD8 File Offset: 0x00049DD8 public WebException(string message) : base(message) { } /// Initializes a new instance of the class from the specified and instances. /// A that contains the information required to serialize the new . /// A that contains the source of the serialized stream that is associated with the new . // Token: 0x06001692 RID: 5778 RVA: 0x0004BBEC File Offset: 0x00049DEC protected WebException(SerializationInfo info, StreamingContext context) : base(info, context) { } /// Initializes a new instance of the class with the specified error message and nested exception. /// The text of the error message. /// A nested exception. // Token: 0x06001693 RID: 5779 RVA: 0x0004BC00 File Offset: 0x00049E00 public WebException(string message, Exception innerException) : base(message, innerException) { } /// Initializes a new instance of the class with the specified error message and status. /// The text of the error message. /// One of the values. // 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; } /// Initializes a new instance of the class with the specified error message, nested exception, status, and response. /// The text of the error message. /// A nested exception. /// One of the values. /// A instance that contains the response from the remote host. // 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; } /// Serializes this instance into the specified object. /// The object into which this will be serialized. /// The destination of the serialization. // Token: 0x06001697 RID: 5783 RVA: 0x0004BC6C File Offset: 0x00049E6C void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); } /// Gets the response that the remote host returned. /// If a response is available from the Internet resource, a instance that contains the error response from an Internet resource; otherwise, null. // Token: 0x17000740 RID: 1856 // (get) Token: 0x06001698 RID: 5784 RVA: 0x0004BC78 File Offset: 0x00049E78 public WebResponse Response { get { return this.response; } } /// Gets the status of the response. /// One of the values. // Token: 0x17000741 RID: 1857 // (get) Token: 0x06001699 RID: 5785 RVA: 0x0004BC80 File Offset: 0x00049E80 public WebExceptionStatus Status { get { return this.status; } } /// Populates a instance with the data needed to serialize the . /// The to be used. /// The to be used. // 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; } }