1 #ifndef __MONO_ERROR_INTERNALS_H__
2 #define __MONO_ERROR_INTERNALS_H__
4 #include "mono/utils/mono-compiler.h"
5 #include "mono/metadata/object-internals.h"
7 /*Keep in sync with MonoError*/
9 unsigned short error_code
;
12 /*These name are suggestions of their content. MonoError internals might use them for something else.*/
13 const char *type_name
;
14 const char *assembly_name
;
15 const char *member_name
;
16 const char *exception_name_space
;
17 const char *exception_name
;
19 const char *full_message
;
26 mono_error_dup_strings (MonoError
*error
, gboolean dup_strings
) MONO_INTERNAL
;
28 /* This function is not very useful as you can't provide any details beyond the message.*/
30 mono_error_set_error (MonoError
*error
, int error_code
, const char *msg_format
, ...) MONO_INTERNAL
;
33 mono_error_set_assembly_load (MonoError
*error
, const char *assembly_name
, const char *msg_format
, ...) MONO_INTERNAL
;
36 mono_error_set_assembly_load_simple (MonoError
*error
, const char *assembly_name
, gboolean refection_only
) MONO_INTERNAL
;
39 mono_error_set_type_load_class (MonoError
*error
, MonoClass
*klass
, const char *msg_format
, ...) MONO_INTERNAL
;
42 mono_error_set_type_load_name (MonoError
*error
, const char *type_name
, const char *assembly_name
, const char *msg_format
, ...) MONO_INTERNAL
;
45 mono_error_set_method_load (MonoError
*error
, MonoClass
*klass
, const char *method_name
, const char *msg_format
, ...) MONO_INTERNAL
;
48 mono_error_set_field_load (MonoError
*error
, MonoClass
*klass
, const char *field_name
, const char *msg_format
, ...) MONO_INTERNAL
;
51 mono_error_set_bad_image (MonoError
*error
, MonoImage
*image
, const char *msg_format
, ...) MONO_INTERNAL
;
54 mono_error_set_bad_image_name (MonoError
*error
, const char *file_name
, const char *msg_format
, ...) MONO_INTERNAL
;
57 mono_error_set_out_of_memory (MonoError
*error
, const char *msg_format
, ...) MONO_INTERNAL
;
60 mono_error_set_argument (MonoError
*error
, const char *argument
, const char *msg_format
, ...) MONO_INTERNAL
;
63 mono_error_set_not_verifiable (MonoError
*oerror
, MonoMethod
*method
, const char *msg_format
, ...) MONO_INTERNAL
;
66 mono_error_set_generic_error (MonoError
*error
, const char * name_space
, const char *name
, const char *msg_format
, ...) MONO_INTERNAL
;
69 mono_error_set_from_loader_error (MonoError
*error
) MONO_INTERNAL
;
72 mono_error_prepare_exception (MonoError
*error
, MonoError
*error_out
) MONO_INTERNAL
;
75 mono_error_convert_to_exception (MonoError
*error
) MONO_INTERNAL
;
78 mono_error_raise_exception (MonoError
*error
) MONO_INTERNAL
;
81 mono_loader_set_error_from_mono_error (MonoError
*oerror
) MONO_INTERNAL
;