<PackageReference Include="Microsoft.Bcl" Version="1.1.9" />

System.IO.InvalidDataException

public sealed class InvalidDataException : Exception
The exception that is thrown when a data stream is in an invalid format.

Initializes a new instance of the InvalidDataException class.

public InvalidDataException(string message)

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

public InvalidDataException(string message, Exception innerException)

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