Creates a new instance of the PathTooLongException class that displays the root cause of the exception. Its message string is set to message and its HRESULT is set to COR_E_PATHTOOLONG.
[Visual Basic] Overloads Public Sub New( _ ByVal message As String, _ ByVal inner As Exception _ ) [C#] public PathTooLongException( string message, Exception inner ); [C++] public: PathTooLongException( String* message, Exception* inner ); [JScript] public function PathTooLongException( 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.
PathTooLongException Class | PathTooLongException Members | System.IO Namespace | PathTooLongException Constructor Overload List