Author: miguel
Date: 2005-03-15 17:27:37 -0500 (Tue, 15 Mar 2005)
New Revision: 41867

Modified:
   trunk/mcs/mcs/attribute.cs
Log:
Better messages than a throw

Modified: trunk/mcs/mcs/attribute.cs
===================================================================
--- trunk/mcs/mcs/attribute.cs  2005-03-15 22:10:24 UTC (rev 41866)
+++ trunk/mcs/mcs/attribute.cs  2005-03-15 22:27:37 UTC (rev 41867)
@@ -1082,7 +1082,10 @@
                                for (int i = 0; i < field_info_arr.Length; i++) 
{
                                        switch (field_info_arr [i].Name) {
                                                case "BestFitMapping":
-                                                       throw new 
NotImplementedException ();
+                                                       Report.Error (-1, 
Location,
+                                                                     "There is 
no way to set the ThrowOnUnmappableChar " +
+                                                                     "property 
with Reflection");
+                                                       return null;
                                                case "CallingConvention":
                                                        cc = 
(CallingConvention) field_values_arr [i];
                                                        break;
@@ -1102,7 +1105,11 @@
                                                        char_set_extra |= 0x40;
                                                        break;
                                                case "ThrowOnUnmappableChar":
-                                                       throw new 
NotImplementedException ();
+                                                       Report.Error (-1, 
Location,
+                                                                     "There is 
no way to set the ThrowOnUnmappableChar " +
+                                                                     "property 
with Reflection");
+                                                       return null;
+                                                       
                                                default: 
                                                        throw new 
InternalErrorException (field_info_arr [i].ToString ());
                                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to