Package Info

perl-Class-ErrorHandler


Base class for error handling


Development/Libraries/Perl

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.


License: Artistic-1.0 or GPL-1.0+
URL: http://search.cpan.org/dist/Class-ErrorHandler/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.04-bp156.3.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Class-ErrorHandler
0.04-bp155.2.10 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Class-ErrorHandler
0.04-bp154.1.23 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Class-ErrorHandler
0.04-bp153.1.15 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Class-ErrorHandler
0.04-bp152.1.12 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Class-ErrorHandler