Hi Ken,

On Thu, 26 Sep 2013 09:45:45 +0800
Ken Peng <ken.p...@cloudcache.net> wrote:

> Does perl have a way to raise a error in module/class then from caller 
> use Try::Tiny etc to catch them? Thanks.
> 

I'm not using Try::Tiny (though many people recommend it), but I use
https://metacpan.org/release/Exception-Class and it works fine. It's not clear
what exactly you're trying to do.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
http://www.shlomifish.org/humour/ways_to_do_it.html

Hackers bend the rules, so the NSA hates them. Instead, the NSA accumulates
rules, observes them, and accepts their fate: death.
    — http://www.shlomifish.org/humour/bits/facts/NSA

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to