Try-Tiny-ByClass reviews

cpanratings
 

RSS | Module Info | Add a review of Try-Tiny-ByClass

Try-Tiny-ByClass (0.01) ****

Nice extension to Try::Tiny to make it simple to catch a collection of different exception classes and behave accordingly.

Its one weak point is that it has no facility to catch strings, which are quite commonly thrown by many Perl core modules and popular CPAN modules, even if your policy within your application is to always use exception objects. (Try::Tiny::SmartCatch is an alternative without this limitation, but with somewhat more verbose syntax.)