Skip to content

SerializerException Constructors

Base exception for any serializer exception.

SerializerException(SerializationInfo, StreamingContext)

View source
[System.Obsolete]
protected SerializerException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the SerializerException class.

Parameters

infoSerializationInfo
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContext
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

SerializerException(string, Exception)

View source
public SerializerException(string message, Exception innerException)
Initializes a new instance of the SerializerException class.

Parameters

messagestring
The error message that explains the reason for the exception.
innerExceptionException
The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.