http://www.perlmonks.org?node_id=998107


in reply to Using Tiny::try with exception class

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"; ... } }