Re: exceptions (was Re: blahblahblah)



Jörn Reder said:
muppet wrote:

  - if you do not register any exception handlers with Glib, unhandled
    exceptions will be reported noisily through warn() and then
    forgotten.

Ok, then just one simple question ;) How do I register exception
handlers with Glib?


Glib->install_exception_handler (sub {
        my $msg = shift;
        # msg = what used to be in $@
});

doc (and examples) should be coming soon.

--
Think, before you code.

and while you're doing it probably won't hurt. ;-)

-rm



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