Perl::Critic::Policy::TryTiny::RequireUse - Requires that code which utilizes Try::Tiny actually use()es it. River stage zero No dependents

A common problem with Try::Tiny is forgetting to use the module in the first place. For example: perl -e 'try { print "hello" } catch { print "world" }' Can't call method "catch" without a package or object reference at -e line 1. helloworld If you f...

BLUEFEET/Perl-Critic-Policy-TryTiny-RequireUse-0.05 - 03 Mar 2019 18:55:41 UTC - Search in distribution

Perl::Critic::Policy::TryTiny::RequireCatch - Always include a "catch" block when using "try" River stage zero No dependents

Programmers from other programming languages may assume that the following code does not swallow exceptions: use Try::Tiny; try { # ... } finally { # ... }; However, Try::Tiny's implementation always swallows exceptions unless a catch block has been ...

FLIMM/Perl-Critic-Lokku-0.003 - 24 Jun 2017 17:18:59 UTC - Search in distribution

Perl::Critic::Policy::TryTiny::RequireBlockTermination - Requires that try/catch/finally blocks are properly terminated. River stage zero No dependents

A common problem with Try::Tiny is forgetting to put a semicolon after the try/catch/finally block which can lead to difficul to debug issues. While Try::Tiny does do its best to detect this issue it cannot if the code after the block returns an empt...

BLUEFEET/Perl-Critic-Policy-TryTiny-RequireBlockTermination-0.03 - 03 Mar 2019 18:51:40 UTC - Search in distribution

3 results (0.059 seconds)