Files
mono/mcs/class/System/System.IO/InvalidDataException.cs
T
Miguel de Icaza f48ceb9860 [System] Removal of the NET_2_0 in the source code
Modulo the GUID in the assembly and the GUID embedded in some
field initializers that use the assembly GUID for their name, the
assemblies are idential before and after the patch.
2012-06-02 13:16:40 -04:00

47 lines
932 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)
//
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)
{
}
}
}