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!

PathTooLongException Constructor (String, Exception)

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
);

Parameters

message
The exception that is the root cause of this exception.
inner
[To be supplied.]

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

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