Class SerializationException
Exception raised when an error occurs during ISerializer<T> or IDeserializer<T> operations.
public class SerializationException : Exception, ISerializable
- Inheritance
-
SerializationException
- Implements
- Inherited Members
Remarks
Example operations that may throw this exception:
Constructors
SerializationException()
Initializes a new instance of the SerializationException class.
public SerializationException()
SerializationException(string)
Initializes a new instance of the SerializationException class with a specified error message.
public SerializationException(string message)
Parameters
messagestringThe message that describes the error.
SerializationException(string, Exception)
Initializes a new instance of the SerializationException class with a specified error message and cause.
public SerializationException(string message, Exception innerException)
Parameters
messagestringThe message that describes the error.
innerExceptionExceptionThe exception that is the cause of the current exception. A
nullvalue is permitted and indicates that the cause is nonexistent or unknown.
Remarks
Note that the detail message associated with innerException is not
automatically incorporated in this exception's detail message.