Install libtry-tiny-byclass-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libtry-tiny-byclass-perl
Description:
selectively catch exceptions by class name
This module is a simple wrapper around Try::Tiny, which see. It re-exports try, catch, and finally. In addition, it provides a way to catch only some exceptions by filtering on the class (including superclasses and consumed roles) of an exception object.
Homepage: https://metacpan.org/pod/Try::Tiny::ByClass
Version: 0.01-1
Section: universe/perl