2004-02-12 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / class / corlib / System.Reflection / TargetException.cs
1 //
2 // System.Reflection.TargetException.cs
3 //
4 // Author: Duncan Mak (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc. http://www.ximian.com
7 //
8
9 using System.Globalization;
10 using System.Runtime.Serialization;
11
12 namespace System.Reflection
13 {
14         [Serializable]
15         public class TargetException : ApplicationException
16         {
17                 public TargetException ()
18                         : base (Locale.GetText ("Unable to invoke an invalid target."))
19                 {
20                 }
21
22                 public TargetException (string message)
23                         : base (message)
24                 {
25                 }
26
27                 public TargetException (string message, Exception innerException)
28                         : base (message, innerException)
29                 {
30                 }
31
32                 protected TargetException (SerializationInfo info, StreamingContext context)
33                         : base (info, context)
34                 {
35                 }
36         }
37 }