Name : perl-Exception-Class-TryCatch
| |
Version : 1.13
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.2.1
| Date : 2024-07-03 17:54:15
|
Group : Development/Libraries/Perl
| Source RPM : perl-Exception-Class-TryCatch-1.13-lp156.2.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Syntactic try/catch sugar for use with Exception::Class
|
Description :
Exception::Class::TryCatch provides syntactic sugar for use with Exception::Class using the familiar keywords \'try\' and \'catch\'. Its primary objective is to allow users to avoid dealing directly with \'$AATT\' by ensuring that any exceptions caught in an \'eval\' are captured as Exception::Class objects, whether they were thrown objects to begin with or whether the error resulted from \'die\'. This means that users may immediately use \'isa\' and various Exception::Class methods to process the exception.
In addition, this module provides for a method to push errors onto a hidden error stack immediately after an \'eval\' so that cleanup code or other error handling may also call \'eval\' without the original error in \'$AATT\' being lost.
Inspiration for this module is due in part to Dave Rolsky\'s article \"Exception Handling in Perl With Exception::Class\" in _The Perl Journal_ (Rolsky 2004).
The \'try/catch\' syntax used in this module does not use code reference prototypes the way the Error.pm module does, but simply provides some helpful functionality when used in combination with \'eval\'. As a result, it avoids the complexity and dangers involving nested closures and memory leaks inherent in Error.pm (Perrin 2003).
Rolsky (2004) notes that these memory leaks may not occur in recent versions of Perl, but the approach used in Exception::Class::TryCatch should be safe for all versions of Perl as it leaves all code execution to the \'eval\' in the current scope, avoiding closures altogether.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-E/15.6/noarch |