Package Info

perl-Exception-Base


Lightweight exceptions


Development/Libraries/Perl

This class implements a fully OO exception mechanism similar to Exception::Class or Class::Throwable. It provides a simple interface allowing programmers to declare exception classes. These classes can be thrown and caught. Each uncaught exception prints full stack trace if the default verbosity is increased for debugging purposes.

The features of 'Exception::Base':

  • fast implementation of the exception class

  • fully OO without closures and source code filtering

  • does not mess with '$SIG{DIE}' and '$SIG{WARN}'

  • no external run-time modules dependencies, requires core Perl modules only

  • the default behavior of exception class can be changed globally or just for

the thrown exception

  • matching the exception by class, message or other attributes

  • matching with string, regex or closure function

  • creating automatically the derived exception classes (perlfunc/use

interface)

  • easily expendable, see Exception::System class for example

  • prints just an error message or dumps full stack trace

  • can propagate (rethrow) an exception

  • can ignore some packages for stack trace output

  • some defaults (i.e. verbosity) can be different for different exceptions


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

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.2501-bp155.2.8 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Exception-Base
0.2501-bp154.1.18 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Exception-Base
0.2501-bp153.1.12 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Exception-Base
0.2501-bp152.3.16 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Exception-Base
0.2501-bp151.3.1 info GA Release 2019-07-16 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Exception-Base
0.2501-bp151.2.12 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Exception-Base
0.2501-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Exception-Base