2004-03-09 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System / NotSupportedException.cs
1 //
2 // System.NotSupportedException.cs
3 //
4 // Authors:
5 //   Joe Shaw (joe@ximian.com)
6 //   Duncan Mak (duncan@ximian.com)
7 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
8 //
9 // (C) 2001 Ximian, Inc.  http://www.ximian.com
10 //
11
12 using System.Runtime.Serialization;
13
14 namespace System
15 {
16         [Serializable]
17         public class NotSupportedException : SystemException
18         {
19                 const int Result = unchecked ((int)0x80131515);
20
21                 // Constructors
22                 public NotSupportedException ()
23                         : base (Locale.GetText ("Operation is not supported."))
24                 {
25                         HResult = Result;
26                 }
27
28                 public NotSupportedException (string message)
29                         : base (message)
30                 {
31                         HResult = Result;
32                 }
33
34                 public NotSupportedException (string message, Exception inner)
35                         : base (message, inner)
36                 {
37                         HResult = Result;
38                 }
39
40                 protected NotSupportedException (SerializationInfo info, StreamingContext context)
41                         : base (info, context)
42                 {
43                 }
44         }
45 }