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