gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] cath exceptions raised in another module's init section


From: Gaius Mulley
Subject: Re: [Gm2] cath exceptions raised in another module's init section
Date: Wed, 06 Jan 2010 15:58:03 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Martin Kalbfuß <address@hidden> writes:

> Hi again.
>
> I tried the following:
>
> I raised an exception in the initialization section of an imported
> module. Then I tried to catch this exception in the importing main
> module. This didn't work. Is this the way it should be? When I throw an
> exception in any other imported function, I can catch it in the
> importing module.
>
> I have the function InitSubSystem. It can fail. So I have to call it by
> hand, to catch the exception. But the right place to put them would be
> the initialization section of the SubSystem's module.
>
> Thanks,
>  
> -- 
> Martin Kalbfuß <address@hidden>

Hi Martin,

would it be possible to post the main and module code so I can examine
the problem?

regards,
Gaius




reply via email to

[Prev in Thread] Current Thread [Next in Thread]