+2003-07-23 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * exception.c:
+ * exception.h:
+ * icall.c:
+ * object.h: fill in the type name for TypeLoadException.
+
2003-07-23 Ravi Pratap <ravi@ximian.com>
* class.c: Fixes from Paolo in response to bug #45415 (Subclass
}
MonoException *
-mono_get_exception_type_load ()
+mono_get_exception_type_load (MonoString *type_name)
{
- return mono_exception_from_name (mono_defaults.corlib, "System",
- "TypeLoadException");
+ MonoTypeLoadException *exc;
+
+ exc = (MonoTypeLoadException *) mono_exception_from_name (mono_defaults.corlib,
+ "System",
+ "TypeLoadException");
+
+ exc->type_name = type_name;
+ return (MonoException *) exc;
}
MonoException *
mono_get_exception_array_type_mismatch (void);
MonoException *
-mono_get_exception_type_load (void);
+mono_get_exception_type_load (MonoString *type_name);
MonoException *
mono_get_exception_missing_method (void);
g_list_free (info.modifiers);
g_list_free (info.nested);
if (throwOnError) /* uhm: this is a parse error, though... */
- mono_raise_exception (mono_get_exception_type_load ());
+ mono_raise_exception (mono_get_exception_type_load (name));
return NULL;
}
g_list_free (info.nested);
if (!type) {
if (throwOnError)
- mono_raise_exception (mono_get_exception_type_load ());
+ mono_raise_exception (mono_get_exception_type_load (name));
return NULL;
}
g_list_free (info.modifiers);
g_list_free (info.nested);
if (throwOnError) /* uhm: this is a parse error, though... */
- mono_raise_exception (mono_get_exception_type_load ());
+ mono_raise_exception (mono_get_exception_type_load (name));
/*g_print ("failed parse\n");*/
return NULL;
}
g_list_free (info.nested);
if (!type) {
if (throwOnError)
- mono_raise_exception (mono_get_exception_type_load ());
+ mono_raise_exception (mono_get_exception_type_load (name));
/* g_print ("failed find\n"); */
return NULL;
}