SerializationException Constructor
SerializationException()
Initializes a new instance of the SerializationException class.
Declaration
public SerializationException()
SerializationException(string)
Initializes a new instance of the SerializationException class with a specified error message.
Declaration
public SerializationException(string message)
Parameters
string | message | The message that describes the error. |
SerializationException(Exception)
Initializes a new instance of the SerializationException class with a reference to the inner exception that is the cause of this exception.
Declaration
public SerializationException(Exception innerException)
Parameters
Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
SerializationException(string, Exception)
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.
Declaration
public SerializationException(string message, Exception innerException)
Parameters
string | message | The message that describes the error. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
SerializationException(SerializationInfo, StreamingContext)
Initializes a new instance of the SerializationException class with serialized data.
Declaration
protected SerializationException(SerializationInfo info, StreamingContext context)
Parameters
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |