| 1 |
Source: liblexical-failure-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: Salvatore Bonaccorso <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13) |
| 8 |
Build-Depends-Indep: libkeyword-simple-perl <!nocheck>, |
| 9 |
libscope-upper-perl <!nocheck>, |
| 10 |
libtest-effects-perl <!nocheck>, |
| 11 |
perl |
| 12 |
Standards-Version: 4.6.2 |
| 13 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/liblexical-failure-perl |
| 14 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/liblexical-failure-perl.git |
| 15 |
Homepage: https://metacpan.org/release/Lexical-Failure |
| 16 |
Rules-Requires-Root: no |
| 17 |
|
| 18 |
Package: liblexical-failure-perl |
| 19 |
Architecture: all |
| 20 |
Depends: ${misc:Depends}, |
| 21 |
${perl:Depends}, |
| 22 |
libkeyword-simple-perl, |
| 23 |
libscope-upper-perl |
| 24 |
Description: Perl module for user-selectable lexically-scoped failure signaling |
| 25 |
Lexical::Failure sets up two new keywords: fail and ON_FAILURE, with which |
| 26 |
you can quickly create modules whose failure signaling is lexcially scoped, |
| 27 |
under the control of client code. |
| 28 |
. |
| 29 |
Normally, modules specify some fixed mechanism for error handling and require |
| 30 |
client code to adapt to that policy. One module may signal errors by |
| 31 |
returning undef, or perhaps some special "error object". Another may die or |
| 32 |
croak on failure. A third may set a flag variable. A fourth may require the |
| 33 |
client code to set up a callback, which is executed on failure. |
| 34 |
. |
| 35 |
If you are using all four modules, your own code now has to check for failure |
| 36 |
in four different ways, depending on where the failing component originated. |
| 37 |
If you would rather that all components throw exceptions, or all return |
| 38 |
undef, you will probably have to write wrappers around 3/4 of them, to |
| 39 |
convert from their "native" failure mechanism to your preferred one. |