Skip Menu |

This queue is for tickets about the Try-Tiny CPAN distribution.

Report information
The Basics
Id: 52927
Status: resolved
Priority: 0/
Queue: Try-Tiny

People
Owner: Nobody in particular
Requestors: joelz [...] pobox.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.01
Fixed in: (no value)



Subject: Doesn't appear to catch exceptions in event loops under Tk or Event
Naively using Try::Tiny's try { } catch { } instead of block eval under two kinds of events loops (Tk, Event) I find that Try::Tiny doesn't catch an exception (generated by die), whereas a basic block eval does. If this limitation is widely true and proves impractical to patch, it may be worth stating in the CAVEATS section.
When Try::Tiny is not imported for some reason, the code is executed and then Perl tries to invoke the method 'try' on the result of the expression. If an exception is thrown beforehand, this looks like 'try' is letting errors propagate through. Are you sure that's not what's happenning?
On Thu Jan 28 03:25:27 2010, NUFFIN wrote: Show quoted text
> When Try::Tiny is not imported for some reason, the code is executed > and > then Perl tries to invoke the method 'try' on the result of the > expression. > > If an exception is thrown beforehand, this looks like 'try' is letting > errors > propagate through. > > Are you sure that's not what's happenning?
Mea culpa. That is exactly the case: I neglected to 'use Try::Tiny' in the package in question. Thank you for your response. I'm setting the bug status to 'resolved'.