| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // System.InvalidDataException.cs
- //
- // Authors:
- // Christopher James Lahey <[email protected]>
- // Andreas Nahr ([email protected])
- //
- // (C) 2004 Novell, Inc. http://www.novell.com
- //
- #if NET_2_0
- using System.Globalization;
- using System.Runtime.Serialization;
- namespace System.IO
- {
- [Serializable]
- public 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;
- }
- protected InvalidDataException (SerializationInfo info, StreamingContext context)
- : base (info, context)
- {
- }
- }
- }
- #endif
|