mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* InvalidDataException.cs: Added private ctor for serialization. Fix bug #324569. svn path=/trunk/mcs/; revision=89018
50 lines
952 B
C#
50 lines
952 B
C#
//
|
|
// System.InvalidDataException.cs
|
|
//
|
|
// Authors:
|
|
// Christopher James Lahey <[email protected]>
|
|
// Andreas Nahr ([email protected])
|
|
//
|
|
// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
|
|
//
|
|
|
|
#if NET_2_0
|
|
|
|
using System.Globalization;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.IO
|
|
{
|
|
[Serializable]
|
|
public sealed class InvalidDataException : SystemException
|
|
{
|
|
const int Result = unchecked ((int)0x80131503);
|
|
|
|
// Constructors
|
|
public InvalidDataException ()
|
|
: base (Locale.GetText ("Invalid data format."))
|
|
{
|
|
HResult = Result;
|
|
}
|
|
|
|
public InvalidDataException (string message)
|
|
: base (message)
|
|
{
|
|
HResult = Result;
|
|
}
|
|
|
|
public InvalidDataException (string message, Exception innerException)
|
|
: base (message, innerException)
|
|
{
|
|
HResult = Result;
|
|
}
|
|
|
|
private InvalidDataException (SerializationInfo info, StreamingContext context)
|
|
: base (info, context)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|