I have found that there is the module Error that provides try and catch functionality like in java. But I am confused at how you can print the exception that returns.
I
If you want something a bit more powerful than Try::Tiny, you might want to try looking at the TryCatch module in CPAN.