Invalid​Data​Exception Class

Definition

The exception that is thrown when a data stream is in an invalid format.

public sealed class InvalidDataException : SystemException
Inheritance
InvalidDataException

Inherited Members

Remarks

An InvalidDataException is thrown when invalid data is detected in the data stream.

Constructors

Invalid​Data​Exception()

Initializes a new instance of the InvalidDataException class.

Invalid​Data​Exception(​String)

Initializes a new instance of the InvalidDataException class with a specified error message.

Invalid​Data​Exception(​String, ​Exception)

Initializes a new instance of the InvalidDataException class with a reference to the inner exception that is the cause of this exception.