Re: Exceptions into messageboxes?
- From: Jens Luedicke <jens luedicke gmail com>
- To: Ari Jolma <ari jolma tkk fi>, Gtk2-Perl List <gtk-perl-list gnome org>
- Cc:
- Subject: Re: Exceptions into messageboxes?
- Date: Tue, 13 Sep 2005 11:04:26 +0200
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]