Merge pull request #3142 from henricm/fix-for-win-mono_string_to_utf8
[mono.git] / mono / utils / mono-error.h
index 12747711fc4206244e052500c8e48a373cde246b..0aba0e1d61abb4219d6cfc15a9a8ead976c1ceaa 100644 (file)
@@ -24,12 +24,20 @@ enum {
        MONO_ERROR_BAD_IMAGE = 5,
        MONO_ERROR_OUT_OF_MEMORY = 6,
        MONO_ERROR_ARGUMENT = 7,
+       MONO_ERROR_ARGUMENT_NULL = 11,
        MONO_ERROR_NOT_VERIFIABLE = 8,
+       MONO_ERROR_INVALID_PROGRAM = 12,
+
        /*
         * 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
+       MONO_ERROR_GENERIC = 9,
+       /* This one encapsulates a managed exception instance */
+       MONO_ERROR_EXCEPTION_INSTANCE = 10,
+
+       /* Not a valid error code - indicates that the error was cleaned up and reused */
+       MONO_ERROR_CLEANUP_CALLED_SENTINEL = 0xffff
 };
 
 /*Keep in sync with MonoErrorInternal*/