using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; namespace System.IO { /// The exception that is thrown when reading is attempted past the end of a stream. /// 2 // Token: 0x020001B1 RID: 433 [ComVisible(true)] [Serializable] public class EndOfStreamException : IOException { /// Initializes a new instance of the class with its message string set to a system-supplied message and its HRESULT set to COR_E_ENDOFSTREAM. // Token: 0x06001632 RID: 5682 RVA: 0x000555F0 File Offset: 0x000537F0 public EndOfStreamException() : base(Locale.GetText("Failed to read past end of stream.")) { } /// Initializes a new instance of the class with its message string set to and its HRESULT set to COR_E_ENDOFSTREAM. /// A string that describes the error. The content of is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. // Token: 0x06001633 RID: 5683 RVA: 0x00055604 File Offset: 0x00053804 public EndOfStreamException(string message) : base(message) { } /// Initializes a new instance of the class with the specified serialization and context information. /// The that holds the serialized object data about the exception being thrown. /// The that contains contextual information about the source or destination. // Token: 0x06001634 RID: 5684 RVA: 0x00055610 File Offset: 0x00053810 protected EndOfStreamException(SerializationInfo info, StreamingContext context) : base(info, context) { } /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. /// A string that describes the error. The content of is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. // Token: 0x06001635 RID: 5685 RVA: 0x0005561C File Offset: 0x0005381C public EndOfStreamException(string message, Exception innerException) : base(message, innerException) { } } }