MonoException *
mono_get_exception_field_access_msg (const char *msg)
{
- MonoString *s = msg ? mono_string_new (mono_domain_get (), msg) : NULL;
-
return mono_exception_from_name_msg (mono_get_corlib (), "System", "FieldAccessException", msg);
}
MonoException *
mono_get_exception_method_access_msg (const char *msg)
{
- MonoString *s = msg ? mono_string_new (mono_domain_get (), msg) : NULL;
-
return mono_exception_from_name_msg (mono_get_corlib (), "System", "MethodAccessException", msg);
}
return (MonoException *) exc;
}
+
+MonoException *
+mono_get_exception_runtime_wrapped (MonoObject *wrapped_exception)
+{
+ MonoRuntimeWrappedException *ex = (MonoRuntimeWrappedException*)
+ mono_exception_from_name (mono_get_corlib (), "System.Runtime.CompilerServices",
+ "RuntimeWrappedException");
+
+ MONO_OBJECT_SETREF (ex, wrapped_exception, wrapped_exception);
+ return (MonoException*)ex;
+}