X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=mono%2Futils%2Fmono-error.c;fp=mono%2Futils%2Fmono-error.c;h=27f2b62fb248ff784d2f6dbc9b350f98a7613d07;hb=56b3c007f428d93b7f230d58744393ad69e4ca63;hp=e193291a569cbb39a78448fd5a90ceda29dcffbd;hpb=72c86fe6cc214bd8dcd2043846c90a6cc5cbe58d;p=mono.git diff --git a/mono/utils/mono-error.c b/mono/utils/mono-error.c index e193291a569..27f2b62fb24 100644 --- a/mono/utils/mono-error.c +++ b/mono/utils/mono-error.c @@ -176,6 +176,17 @@ mono_error_get_error_code (MonoError *error) return error->error_code; } +const char* +mono_error_get_exception_name (MonoError *oerror) +{ + MonoErrorInternal *error = (MonoErrorInternal*)oerror; + + if (error->error_code == MONO_ERROR_NONE) + return NULL; + + return error->exception_name; +} + /*Return a pointer to the internal error message, might be NULL. Caller should not release it.*/ const char*