1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
Source: liberror-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: gregor herrmann <gregoa@debian.org>
Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper-compat (= 12),
libmodule-build-perl
Build-Depends-Indep: perl
Standards-Version: 4.5.0
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/liberror-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/liberror-perl.git
Homepage: https://metacpan.org/release/Error
Package: liberror-perl
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends},
${perl:Depends}
Description: Perl module for error/exception handling in an OO-ish way
The Error module provides two interfaces. Firstly "Error" provides a
procedural interface to exception handling. Secondly "Error" is a base class
for errors/exceptions that can either be thrown, for subsequent catch, or can
simply be recorded.
.
Errors in the class "Error" should not be thrown directly, but the user
should throw errors from a sub-class of "Error".
.
Warning: Using the "Error" module is no longer recommended due to the
black-magical nature of its syntactic sugar, which often tends to break. Its
maintainers have stopped actively writing code that uses it, and discourage
people from doing so.
.
Recommended alternatives are Exception::Class (libexception-class-perl),
Error::Exception (not packaged), TryCatch (libtrycatch-perl), and Try::Tiny
(libtry-tiny-perl).
|