NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

EndOfStreamException Constructor (String, Exception)

Creates a new instance of the EndOfStreamException class with its message string set to message and inner

and its HRESULT set to COR_E_ENDOFSTREAM.

[Visual Basic]
Overloads Public Sub New( _
   ByVal message As String, _
   ByVal inner As Exception _
)
[C#]
public EndOfStreamException(
   string message,
   Exception inner
);
[C++]
public: EndOfStreamException(
   String* message,
   Exception* inner
);
[JScript]
public function EndOfStreamException(
   message : String,
   inner : Exception
);

Parameters

message
The message text for the exception.
inner
The exception that is the root cause of the current exception.

Remarks

When handling exceptions, it is sometimes desirable to throw another exception that is more indicative of the error that has occurred. To avoid losing the original exception and the information that it carries, exceptions can hold a reference to another exception.

See Also

EndOfStreamException Class | EndOfStreamException Members | System.IO Namespace | EndOfStreamException Constructor Overload List