PathTooLongException Class

Definition

The exception that is thrown when a path or file name is longer than the system-defined maximum length.

[Serializable]
[ComVisible(true)]
public class PathTooLongException : IOException, ISerializable, _Exception
Inheritance
PathTooLongException

Inherited Members

System.Exception

System.Object

Constructors

PathTooLongException()

Initializes a new instance of the PathTooLongException class with its HRESULT set to COR_E_PATHTOOLONG.

public PathTooLongException()

PathTooLongException(String)

Initializes a new instance of the PathTooLongException class with its message string set to message and its HRESULT set to COR_E_PATHTOOLONG.

public PathTooLongException(string message)
Parameters
message
String

A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

PathTooLongException(String, Exception)

Initializes a new instance of the PathTooLongException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public PathTooLongException(string message, Exception innerException)
Parameters
message
String

A String that describes the error. The content of message is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

See Also

See Also