Initializes a new instance of the InvalidDataException class.
Assemblies: System (in System.dll)
System.IO (in System.IO.dll)
This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "An invalid argument was specified." This message is localized based on the current system culture.