Hello v_melnik,
Have you looked at Try::Tiny::ByClass? From the documentation:
... it provides a way to catch only some exceptions by filtering on the class (including superclasses and consumed roles) of an exception object.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Try::Tiny vs. TryCatch: assigning a value to a variable inside of the try-block
by Athanasius
in thread Try::Tiny vs. TryCatch: assigning a value to a variable inside of the try-block
by v_melnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |