The problem is that Exception::Class->caught() explicitly checks $@ for the exception object. The method doesn't do much anyway though, so with Try::Tiny you can simplify this to:
... catch { if(UNIVERSAL::isa($_,'MyException')) { warn $e->error, "\n"; ... } }
In reply to Re: Using Tiny::try with exception class
by mbethke
in thread Using Tiny::try with exception class
by perlbaski
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |