2003-11-14 Ben Maurer <bmaurer@users.sourceforge.net>
[mono.git] / mcs / class / corlib / System.IO / IOException.cs
1 //
2 // System.IO.IOException.cs
3 //
4 // Author:
5 //   Paolo Molaro (lupus@ximian.com)
6 //
7 // (C) 2001 Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System.Runtime.Serialization;
11
12 namespace System.IO {
13         [Serializable]
14         public class IOException : SystemException {
15
16                 // Constructors
17                 public IOException ()
18                         : base ("I/O Error")
19                 {
20                 }
21
22                 public IOException (string message)
23                         : base (message)
24                 {
25                 }
26
27                 public IOException (string message, Exception inner)
28                         : base (message, inner)
29                 {
30                 }
31
32                 protected IOException (SerializationInfo info, StreamingContext context)
33                         : base (info, context)
34                 {
35                 }
36
37                 public IOException (string message, int hresult)
38                         : base (message)
39                 {
40                         this.HResult = hresult;
41                 }
42         }
43 }