[Mono-list] Exception handling for constructor
Paolo Molaro
lupus@ximian.com
Thu, 24 Jun 2004 00:01:05 +0200
On 06/23/04 Joe Ante wrote:
> I am implementing exception handling from the c side.
> When using mono_runtime_invoke I just check the returned exception for being
> non-NULL, this works nicely.
>
> The same is not possible when calling the constructor.
> For now I wrote my own mono_runtime_object_init function.
>
> I think it would make sense to change mono_runtime_object_init so that an
> MonoException** is passed through.
My plan was to have the exception as return value (or NULL if none),
since that would make things easier to use. I never did that because
only lazy people call mono_runtime_object_init () and if you want to
catch exceptions you'd use mono_runtime_invoke ():-).
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
lupus@ximian.com Monkeys do it better