2004-03-09 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System / InvalidCastException.cs
1 //
2 // System.InvalidCastException.cs
3 //
4 // Authors:
5 //   Joe Shaw (joe@ximian.com)
6 //   Duncan Mak (duncan@ximian.com)
7 //
8 // (C) 2001 Ximian, Inc.  http://www.ximian.com
9 //
10
11 using System.Runtime.Serialization;
12
13 namespace System
14 {
15         [Serializable]
16         public class InvalidCastException : SystemException
17         {
18                 // Constructors
19                 public InvalidCastException ()
20                         : base (Locale.GetText ("Cannot cast from source type to destination type."))
21                 {
22                 }
23
24                 public InvalidCastException (string message)
25                         : base (message)
26                 {
27                 }
28
29                 public InvalidCastException (string message, Exception inner)
30                         : base (message, inner)
31                 {
32                 }
33
34                 protected InvalidCastException (SerializationInfo info, StreamingContext context)
35                         : base (info, context)
36                 {
37                 }
38         }
39 }