<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.0.11-beta-23409" />

SerializationException

The exception thrown when an error occurs during serialization or deserialization.

Initializes a new instance of the SerializationException class with default properties.

public SerializationException(string message)

Initializes a new instance of the SerializationException class with a specified message.

public SerializationException(string message, Exception innerException)

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