public class PathTooLongException : IOException
Object
Exception
SystemException
IOException
PathTooLongException
mscorlib
BCL
Represents the error that occurs when a directory or file name is longer than the system-defined maximum length.
System.IO Namespace
PathTooLongException Constructors
PathTooLongException() Constructor
PathTooLongException(System.String) Constructor
PathTooLongException(System.String, System.Exception) Constructor
public PathTooLongException();
Constructs and initializes a new instance of the PathTooLongException class.
This constructor initializes the System.IO.PathTooLongException.Message property of the new instance to a system-supplied message that describes the error, such as "The supplied path is too long." This message takes into account the current system culture.The System.IO.PathTooLongException.InnerException property of the new instance is initialized to
null
.
System.IO.PathTooLongException Class, System.IO Namespace
public PathTooLongException(string message);
Constructs and initializes a new instance of the PathTooLongException class.
- message
- 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.
This constructor initializes the System.IO.PathTooLongException.Message property of the new instance using message. If message isnull
, the System.IO.PathTooLongException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.The System.IO.PathTooLongException.InnerException property of the new instance is initialized to
null
.
System.IO.PathTooLongException Class, System.IO Namespace
public PathTooLongException(string message, Exception innerException);
Constructs and initializes a new instance of the PathTooLongException class.
- message
- 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
- An instance of Exception that is the cause of the current exception. If innerException is non-null, then the current Exception was raised in a catch block handling innerException.
This constructor initializes the System.IO.PathTooLongException.Message property of the new instance using message and the System.IO.PathTooLongException.InnerException property using innerException. If message isnull
, the System.IO.PathTooLongException.Message property is initialized to the system-supplied message provided by the constructor that takes no arguments.[Note: For more information on inner exceptions, see System.Exception.InnerException.]
System.IO.PathTooLongException Class, System.IO Namespace