[Mono-list] Catching Exceptions with embedded Mono
Robert Jordan
robertj at gmx.net
Sat Oct 15 04:28:55 EDT 2011
On 15.10.2011 08:19, Paril wrote:
> Hey there.
>
> I'm probably missing something very basic, but, how do I display exception
> data related to exceptions thrown by mono_runtime_invoke? I see that I can
> easily post up a "An exception occured" message, but to be more
> user-friendly I'd like for the app to produce a full stack track and
> everything. How do I go about this?
A MonoException* is actually a MonoObject*, so you can invoke its
ToString() method. There is even a helper function for this purpose:
mono_object_to_string.
Robert
More information about the Mono-list
mailing list