Name : perl-Class-ErrorHandler
| |
Version : 0.04
| Vendor : openSUSE
|
Release : bp152.1.12
| Date : 2020-04-16 20:52:05
|
Group : Development/Libraries/Perl
| Source RPM : perl-Class-ErrorHandler-0.04-bp152.1.12.src.rpm
|
Size : 0.02 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : Base class for error handling
|
Description :
_Class::ErrorHandler_ provides an error-handling mechanism that\'s generic enough to be used as the base class for a variety of OO classes. Subclasses inherit its two error-handling methods, _error_ and _errstr_, to communicate error messages back to the calling program.
On failure (for whatever reason), a subclass should call _error_ and return to the caller; _error_ itself sets the error message internally, then returns \'undef\'. This has the effect of the method that failed returning \'undef\' to the caller. The caller should check for errors by checking for a return value of \'undef\', and calling _errstr_ to get the value of the error message on an error.
As demonstrated in the the SYNOPSIS manpage, _error_ and _errstr_ work as both class methods and object methods.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Backports:/SLE-15-SP2/standard/noarch |