System.IO.EndOfStreamException Class

public class EndOfStreamException : IOException

Base Types

Object
  Exception
    SystemException
      IOException
        EndOfStreamException

Assembly

mscorlib

Library

BCL

Summary

Represents the error that occurs when an attempt is made to read past the end of a stream.

See Also

System.IO Namespace

Members

EndOfStreamException Constructors

EndOfStreamException() Constructor
EndOfStreamException(System.String) Constructor
EndOfStreamException(System.String, System.Exception) Constructor


EndOfStreamException() Constructor

public EndOfStreamException();

Summary

Constructs and initializes a new instance of the EndOfStreamException class.

Description

This constructor initializes the System.IO.EndOfStreamException.Message property of the new instance to a system-supplied message that describes the error, such as "Attempted to read past the end of the stream." This message takes into account the current system culture.

The System.IO.EndOfStreamException.InnerException property of the new instance is initialized to null .

See Also

System.IO.EndOfStreamException Class, System.IO Namespace

EndOfStreamException(System.String) Constructor

public EndOfStreamException(string message);

Summary

Constructs and initializes a new instance of the EndOfStreamException class.

Parameters

message
A String that describes the error. The content of message 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.

Description

This constructor initializes the System.IO.EndOfStreamException.Message property of the new instance using message. If message is null , the System.IO.EndOfStreamException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.

The System.IO.EndOfStreamException.InnerException property of the new instance is initialized to null .

See Also

System.IO.EndOfStreamException Class, System.IO Namespace

EndOfStreamException(System.String, System.Exception) Constructor

public EndOfStreamException(string message, Exception innerException);

Summary

Constructs and initializes a new instance of the EndOfStreamException class.

Parameters

message
A String that describes the error. The content of message 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.
innerException
An instance of Exception that is the cause of the current exception. If innerException is non-null, then the current Exception was raised in a catch block handling innerException.

Description

This constructor initializes the System.IO.EndOfStreamException.Message property of the new instance using message and the System.IO.EndOfStreamException.InnerException property using innerException. If message is null , the System.IO.EndOfStreamException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.

[Note: For more information on inner exceptions, see System.Exception.InnerException.]

See Also

System.IO.EndOfStreamException Class, System.IO Namespace