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!

IOException Constructor (String, Exception)

Creates a new IOException with its message string set to message, its HRESULT set to COR_E_ACCESS, and its ExceptionInfo reference set to null.

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

Parameters

message
The message text for the exception.
inner
The exception that is the root cause of this 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

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