Browse Source

2009-09-19 Sebastien Pouliot <[email protected]>

	* TargetException.cs, TargetInvocationException.cs,
	TargetParameterCountException.cs: Inherit from Exception for 
	NET_2_1 since ApplicationException does not exists


svn path=/trunk/mcs/; revision=142256
Sebastien Pouliot 16 years ago
parent
commit
cc934218ec

+ 6 - 0
mcs/class/corlib/System.Reflection/ChangeLog

@@ -1,3 +1,9 @@
+2009-09-19  Sebastien Pouliot  <[email protected]>
+
+	* TargetException.cs, TargetInvocationException.cs,
+	TargetParameterCountException.cs: Inherit from Exception for 
+	NET_2_1 since ApplicationException does not exists
+
 2009-09-18  Sebastien Pouliot  <[email protected]>
 
 	* Assembly.cs, Module.cs: Avoid imperative CAS checks for NET_2_1

+ 5 - 2
mcs/class/corlib/System.Reflection/TargetException.cs

@@ -39,8 +39,11 @@ namespace System.Reflection
 	[ComVisible (true)]
 #endif
 	[Serializable]
-	public class TargetException : ApplicationException
-	{
+#if NET_2_1
+	public class TargetException : Exception {
+#else
+	public class TargetException : ApplicationException {
+#endif
 		public TargetException ()
 			: base (Locale.GetText ("Unable to invoke an invalid target."))
 		{

+ 5 - 2
mcs/class/corlib/System.Reflection/TargetInvocationException.cs

@@ -38,8 +38,11 @@ namespace System.Reflection
 	[ComVisible (true)]
 #endif
 	[Serializable]
-	public sealed class TargetInvocationException : ApplicationException
-	{
+#if NET_2_1
+	public sealed class TargetInvocationException : Exception {
+#else
+	public sealed class TargetInvocationException : ApplicationException {
+#endif
 		public TargetInvocationException (Exception inner)
 			: base ("Exception has been thrown by the target of an invocation.", inner)
 		{			

+ 5 - 2
mcs/class/corlib/System.Reflection/TargetParameterCountException.cs

@@ -39,8 +39,11 @@ namespace System.Reflection
 	[ComVisible (true)]
 #endif
 	[Serializable]
-	public sealed class TargetParameterCountException : ApplicationException
-	{
+#if NET_2_1
+	public sealed class TargetParameterCountException : Exception {
+#else
+	public sealed class TargetParameterCountException : ApplicationException {
+#endif
 		public TargetParameterCountException ()
 			: base (Locale.GetText ("Number of parameter does not match expected count."))
 		{