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 );
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.
FileNotFoundException Class | FileNotFoundException Members | System.IO Namespace | FileNotFoundException Constructor Overload List