2003-11-14 Ben Maurer <bmaurer@users.sourceforge.net>
[mono.git] / mcs / class / corlib / System.IO / EndOfStreamException.cs
1 //      
2 // System.IO.EndOfStreamException.cs
3 //
4 // Author:
5 //      Duncan Mak (duncan@ximian.com)
6 //
7 // 2002 (C) Ximian, Inc. http://www.ximian.com
8 //
9
10 using System;
11 using System.Globalization;
12 using System.IO;
13 using System.Runtime.Serialization;
14
15 namespace System.IO
16 {
17            [Serializable]
18            public class EndOfStreamException : IOException
19            {
20                          // Constructors
21                          public EndOfStreamException ()
22                                     : base (Locale.GetText ("Failed to read past end of stream."))
23                          {
24                          }
25
26                          public EndOfStreamException (string message)
27                                     : base (message)
28                          {
29                          }
30                          
31                          protected EndOfStreamException (SerializationInfo info,
32                                     StreamingContext context)
33                                     : base (info, context)
34                          {
35                          }
36
37                          public EndOfStreamException (string message, Exception innerException)
38                                     :base (message, innerException)
39                          {
40                          }
41                                     
42            }
43 }