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!

FileNotFoundException Constructor (String, Exception)

Creates a new instance of the FileNotFoundException class with its message string set to message and inner and its HRESULT set to COR_E_FILENOTFOUND.

[Visual Basic]
Overloads Public Sub New( _
   ByVal message As String, _
   ByVal inner As Exception _
)
[C#]
public FileNotFoundException(
   string message,
   Exception inner
);
[C++]
public: FileNotFoundException(
   String* message,
   Exception* inner
);
[JScript]
public function FileNotFoundException(
   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. So that the original exception and the information that it carries not be lost, exceptions can hold a reference to another exception.

See Also

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