using System;
using System.Runtime.InteropServices;
namespace System.Runtime.Serialization
{
/// The exception thrown when an error occurs during serialization or deserialization.
// Token: 0x02000493 RID: 1171
[ComVisible(true)]
[Serializable]
public class SerializationException : SystemException
{
/// Initializes a new instance of the class with default properties.
// Token: 0x06002C4C RID: 11340 RVA: 0x00091F08 File Offset: 0x00090108
public SerializationException()
: base("An error occurred during (de)serialization")
{
}
/// Initializes a new instance of the class with a specified message.
/// Indicates the reason why the exception occurred.
// Token: 0x06002C4D RID: 11341 RVA: 0x00091F18 File Offset: 0x00090118
public SerializationException(string message)
: base(message)
{
}
/// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception.
// Token: 0x06002C4E RID: 11342 RVA: 0x00091F24 File Offset: 0x00090124
public SerializationException(string message, Exception innerException)
: base(message, innerException)
{
}
/// Initializes a new instance of the class from serialized data.
/// The serialization information object holding the serialized object data in the name-value form.
/// The contextual information about the source or destination of the exception.
/// The parameter is null.
// Token: 0x06002C4F RID: 11343 RVA: 0x00091F30 File Offset: 0x00090130
protected SerializationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}