Re: Exceptions into messageboxes?



On 9/13/05, Ari Jolma <ari jolma tkk fi> wrote:
Hi,

I call functions in callbacks which may croak. I can catch that using
eval {} and then put the $@ into messagebox but is there a way to make
that the default behavior? In the sense that I wouldn't need to write
eval and MessageBox in every callback? That would be useful as a default
I think. Does this question make sense? ;-)

Glib->install_exception_handler(sub {
        Filer::Dialog->msgbox_error($_[0]);
        return 1;
});


of course you would need to adjust that piece of code
for your needs. 

-- 
Jens Luedicke
web: http://perldude.de/



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