Files
Dec2017-Script-Dump/mscorlib/System/Runtime/Serialization/SerializationException.cs
T
2026-06-04 11:42:34 +02:00

47 lines
2.5 KiB
C#

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