2009-07-22 Mark Probst <mark.probst@gmail.com>
[mono.git] / mono / metadata / exception.c
index 7646208a5aa4021f8f77f1572d4e0b310b3de67f..2fe196762ebb8e37cb2dc08822996fbcb73a6d5a 100644 (file)
@@ -667,6 +667,28 @@ mono_get_exception_out_of_memory (void)
        return mono_exception_from_name (mono_get_corlib (), "System", "OutOfMemoryException");
 }
 
+/**
+ * mono_get_exception_field_access:
+ *
+ * Returns: a new instance of the System.FieldAccessException
+ */
+MonoException *
+mono_get_exception_field_access (void)
+{
+       return mono_exception_from_name (mono_get_corlib (), "System", "FieldAccessException");
+}
+
+/**
+ * mono_get_exception_method_access:
+ *
+ * Returns: a new instance of the System.MethodAccessException
+ */
+MonoException *
+mono_get_exception_method_access (void)
+{
+       return mono_exception_from_name (mono_get_corlib (), "System", "MethodAccessException");
+}
+
 /**
  * mono_get_exception_reflection_type_load:
  * @types: an array of types that were defined in the moduled loaded.