/usr/include/mono-2.0/mono/utils/mono-error.h is in libmono-2.0-dev 3.2.8+dfsg-4ubuntu1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | #ifndef __MONO_ERROR_H__
#define __MONO_ERROR_H__
#include <mono/utils/mono-publib.h>
enum {
/*
The supplied strings were dup'd by means of calling mono_error_dup_strings.
*/
MONO_ERROR_FREE_STRINGS = 0x0001,
/*
Something happened while processing the error and the resulting message is incomplete.
*/
MONO_ERROR_INCOMPLETE = 0x0002
};
enum {
MONO_ERROR_NONE = 0,
MONO_ERROR_MISSING_METHOD = 1,
MONO_ERROR_MISSING_FIELD = 2,
MONO_ERROR_TYPE_LOAD = 3,
MONO_ERROR_FILE_NOT_FOUND = 4,
MONO_ERROR_BAD_IMAGE = 5,
MONO_ERROR_OUT_OF_MEMORY = 6,
MONO_ERROR_ARGUMENT = 7,
MONO_ERROR_NOT_VERIFIABLE = 8,
/*
* This is a generic error mechanism is you need to raise an arbitrary corlib exception.
* You must pass the exception name otherwise prepare_exception will fail with internal execution.
*/
MONO_ERROR_GENERIC = 9
};
/*Keep in sync with MonoErrorInternal*/
typedef struct {
unsigned short error_code;
unsigned short hidden_0; /*DON'T TOUCH */
void *hidden_1 [12]; /*DON'T TOUCH */
char hidden_2 [128]; /*DON'T TOUCH */
} MonoError;
MONO_BEGIN_DECLS
MONO_API void
mono_error_init (MonoError *error);
MONO_API void
mono_error_init_flags (MonoError *error, unsigned short flags);
MONO_API void
mono_error_cleanup (MonoError *error);
MONO_API mono_bool
mono_error_ok (MonoError *error);
MONO_API unsigned short
mono_error_get_error_code (MonoError *error);
MONO_API const char*
mono_error_get_message (MonoError *error);
MONO_END_DECLS
#endif
|